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

Add support for data annotations on fields #6376

Merged
merged 1 commit into from
Aug 22, 2016
Merged

Add support for data annotations on fields #6376

merged 1 commit into from
Aug 22, 2016

Conversation

ajcvickers
Copy link
Contributor

Issue #6316

{
var targetType = FindCandidateNavigationPropertyType(propertyInfo);
var propertyInfo = memberInfo as PropertyInfo;
var targetType = propertyInfo == null ? null : FindCandidateNavigationPropertyType(propertyInfo);
Copy link
Member

Choose a reason for hiding this comment

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

Split into two loops to avoid the double cast

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tried this, but there is more code and it seems less readable, so made a minor change to not store targetType into a local but left as a single loop.

Copy link
Member

Choose a reason for hiding this comment

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

ok

@AndriySvyryd
Copy link
Member

:shipit:

@ajcvickers ajcvickers merged commit 67048ec into dev Aug 22, 2016
@smitpatel smitpatel deleted the Fields0819 branch August 22, 2016 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants