-
-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1369 - Projections inherited from a base class that hides the Id property, projects to an empty Id. #1371
Conversation
src/Marten/StoreOptions.cs
Outdated
@@ -219,9 +219,22 @@ public void Serializer(ISerializer serializer) | |||
/// <param name="enumStyle"></param> | |||
/// <param name="casing">Casing style to be used in serialization</param> | |||
/// <param name="collectionStorage">Allow to set collection storage as raw arrays (without explicit types)</param> | |||
public void UseDefaultSerialization(EnumStorage enumStyle = EnumStorage.AsInteger, Casing casing = Casing.Default, CollectionStorage collectionStorage = CollectionStorage.Default) | |||
/// <param name="nonPublicMembersStorage">Allow to use non public members should be used during deserialization</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to "Allow non public members to be used during deserialization"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs needs to be added
359740c
to
471a9e8
Compare
@mysticmind thank you for the review. I'll update the docs and ping you when they're ready. |
…ted to allow eg. having private or protected setter for ID
…rialization settings, added unit tests for non public id setter
…cumentation of other Newtonsoft.NET Serializer options
60630c7
to
be74783
Compare
@mysticmind I updated the documentation in be74783. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs look good to me. Added a comment to tweak a sentance, please have a look.
Thank you @mysticmind - updated 👍 |
Updated GetProperties to also return private and protected to allow eg. having a private or protected setter for ID.
Added
NonPublicMembersStorage
to allowprivate
andprotected
setters usage during properties (de)serialization and non-default constructor usage (although full support - so removing the limitation of the view having public constructor will be changed in the separate PR).Added documentation for missing Newtonsoft.NET serializer options.
Fixes #1369
@jediwarpraptor @ddivita fyi