Skip to content
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

Merged
merged 9 commits into from
Nov 3, 2019

Conversation

oskardudycz
Copy link
Collaborator

@oskardudycz oskardudycz commented Oct 17, 2019

Updated GetProperties to also return private and protected to allow eg. having a private or protected setter for ID.

Added NonPublicMembersStorage to allow private and protected 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

@oskardudycz oskardudycz changed the title Fixes #1369 - Projections inherited from a base class that hides the Id property, projects to an empty Id. WIP: Fixes #1369 - Projections inherited from a base class that hides the Id property, projects to an empty Id. Oct 17, 2019
@oskardudycz oskardudycz changed the title WIP: Fixes #1369 - Projections inherited from a base class that hides the Id property, projects to an empty Id. Fixes #1369 - Projections inherited from a base class that hides the Id property, projects to an empty Id. Oct 18, 2019
@@ -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>
Copy link
Member

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"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 👍

Copy link
Member

@mysticmind mysticmind left a 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.

Copy link
Member

@mysticmind mysticmind left a 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

@oskardudycz oskardudycz added this to the 3.10.0 milestone Oct 19, 2019
@oskardudycz
Copy link
Collaborator Author

@mysticmind thank you for the review. I'll update the docs and ping you when they're ready.

@oskardudycz
Copy link
Collaborator Author

oskardudycz commented Nov 2, 2019

@mysticmind I updated the documentation in be74783.

Copy link
Member

@mysticmind mysticmind left a 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.

@oskardudycz
Copy link
Collaborator Author

Thank you @mysticmind - updated 👍

@oskardudycz oskardudycz merged commit 790cb27 into master Nov 3, 2019
@oskardudycz oskardudycz deleted the feature/GH-1369 branch November 3, 2019 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Projections inherited from a base class that hides the Id property, projects to an empty Id.
2 participants