Repository navigation
Fixed an issue where attributes of the same name cannot be expanded when subclasses inherit and hide attributes of the parent class #645
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
Changes from 1 commit
46929c2
7a37e50
f9f9dd9
b861460
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -231,7 +231,11 @@ public virtual Expression CreatePropertyValueExpression(QueryBinderContext conte | |
| PropertyInfo propertyInfo = source.Type.GetProperty(propertyName, BindingFlags.DeclaredOnly); | ||
| if (propertyInfo == null) | ||
| { | ||
| propertyInfo = source.Type.GetProperty(propertyName); | ||
| /* | ||
| * History of code: | ||
| * propertyInfo = source.Type.GetProperty(propertyName); | ||
| */ | ||
| propertyInfo = source.Type.GetProperties().Where(m => m.Name.Equals(propertyName)).FirstOrDefault(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you please add some comments for your change in the source file?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Code comments have been added to the new submission |
||
| } | ||
|
|
||
| Expression propertyValue = Expression.Property(source, propertyInfo); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.