-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Ignore IUpdateModel and BuildPartDisplayContext in console_log #11286
Conversation
@@ -16,6 +16,8 @@ public class BagPartEditViewModel | |||
[BindNever] | |||
public BagPart BagPart { get; set; } | |||
|
|||
[System.Text.Json.Serialization.JsonIgnore] |
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.
Isn't there a common attribute that doesn't require referencing these libraries?
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.
I added as - I guess NewtosoftJson's JsonIgnore
wont work for System.Text.Json
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.
[IgnoreDataMember]
, or [NonSerialized]
might work for both libraries
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.
@sebastienros NonSerialized
is not allowed on properties
However IgnoreDataMember
is working - Updated the PR
@sebastienros @deanmarcussen It's be nice to have this included in 1.4 |
Ignore
IUpdateModel
andBuildPartDisplayContext
properties in console_log for Shape jsonFixes #11260