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

Query: Use discriminator type to create the discriminator constant values #7448

Merged
merged 1 commit into from Jan 31, 2017

Conversation

smitpatel
Copy link
Member

Resolves #7359

Whenever we make comparison of discriminator using EF.Property the property expression is generated to be null-able type. If the value is non-nullable type (like int) then it throws exception due to strong typing of Expression.Equal. Fix is to create the constant for value of type of the property expression to avoid mis-match.

It surfaces in materializer for shadow properties. For CLR property the is operator in predicate would throw exception.

@anpete
Copy link
Contributor

anpete commented Jan 30, 2017

:shipit:

@smitpatel smitpatel merged commit 138dd82 into dev Jan 31, 2017
@smitpatel smitpatel deleted the intdiscriminator7359 branch January 31, 2017 00:51
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.

None yet

3 participants