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
Fix #3244 allow id to be set on non generic DefaultMappingFor() #3346
Fix #3244 allow id to be set on non generic DefaultMappingFor() #3346
Conversation
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 left a comment on the Id property naming
/// <summary> | ||
/// The property for <see cref="ClrType"/> to resolve ids from. | ||
/// </summary> | ||
string IdPropertyVerbatim { get; set; } |
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'm personally not keen on the Verbatim
suffix; is this to indicate that the string value will be taken as exactly as is, to infer the Id property? If it is, my personal preference would be to indicate this in XML comments.
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.
It;s mainly because we already have IdProperty
being Expression<Func<TDocument, object>>
so we need two properties. Suggestions on a different name?
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.
OK I see, where IClrTypeMapping<TDocument>
implements IClrTypeMapping
.
Maybe IdPropertyName
, in line with IndexName
, TypeName
and RelationName
?
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.
Better! Will amend.
2048115
to
7d855c1
Compare
No description provided.