-
Notifications
You must be signed in to change notification settings - Fork 1.9k
C#: Model NHibernate framework #1021
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
Conversation
hvitved
left a comment
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.
Good stuff, just two small comments.
|
|
||
| /** A mapped class that is mapped because it is used as a type argument. */ | ||
| private class MappedByTypeArgument extends MappedClass { | ||
| UnboundGeneric gen; |
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.
remove
| this = e.getType() | ||
| ) and | ||
| not this instanceof ObjectType and | ||
| not this.getABaseInterface*() instanceof SystemCollectionsIEnumerableInterface and |
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.
why?
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.
Sometimes, the argument could be a List or a Dictionary which isn't supposed to be mapped. This happened on the NHibernate-Core codebase anyway.
d552ec8 to
c3d0435
Compare
c3d0435 to
3fd10ec
Compare
Follows a very similar structure to #912, and is based on that PR. Only the last 2 commits need reviewing. Will resolve the merge conflict once #912 is merged.
Summary of changes:
SQLExprand therefore vulnerable to SQL injection.As usual, most of the work involves exploring and experimenting with the API. There are also XML specifications (
.hbm.xmlfiles) that specify the mapping, but in the end these files didn't appear to add much value.