Fairly new to raven. But just reading some of the documention ignorning a property seems pretty straight forward. But for some reason my property that I do not want save is being saved. Not sure why. Thanks for any help or guidance.
This is property is created in a Entity project(part of the solution of the web project)
I have no attributes on class btw
[JsonIgnore]
public bool AllowedToEdit
{
get { return _allowedToEdit; }
set { _allowedToEdit = value; }
}
Not sure what else to post, but this property is being saved.
If you are using RavenDB 1.0, this should work as-is.
If you are using RavenDB 2.0, you need to be sure to import from Raven.Imports.Newtonsoft.Json
instead of Newtonsoft.Json
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With