efcore-ext
efcore-ext copied to clipboard
Predicate Error after Null Semantic Optimize
entityBuilder.Property(e => e.NonNullProperty).IsRequired();
string someNull = null;
context.Entities.Where(e => e.NonNullProperty == someNull).BatchUpdateAsync(e => new Entity { ... });
This may lead to the predicate section translated as a boolean.
Seems that this is impacted by Microsoft.EntityFrameworkCore.Query.Internal.ParameterValueBasedSelectExpressionOptimizer+ParameterNullabilityBasedSqlExpressionOptimizingExpressionVisitor
.
Only impacted target is EFCore.SqlServer 3.1.
This is hard to fix. Will add a test only and wait for other helps.