Skip to content

Commit

Permalink
Fix dotnet#7359 In TPH inheritance, int discriminator does not work, …
Browse files Browse the repository at this point in the history
…exception is thrown when compiling query.
  • Loading branch information
Dixin committed Jan 9, 2017
1 parent e622e90 commit c4afabc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -74,7 +74,7 @@ public abstract class EntityQueryModelVisitor : QueryModelVisitorBase
public static Expression CreatePropertyExpression([NotNull] Expression target, [NotNull] IProperty property)
=> Expression.Call(
null,
EF.PropertyMethod.MakeGenericMethod(property.ClrType.MakeNullable()),
EF.PropertyMethod.MakeGenericMethod(property.ClrType),
target,
Expression.Constant(property.Name));

Expand Down

0 comments on commit c4afabc

Please sign in to comment.