Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Created Issue: ArgumentValidation asserts for EdmProperty with null DeclaringType [811]

$
0
0
EdmProperty.Primitive is now public. When trying to use it with DbExpressionBuilder like this it may cause asserts:
var propertyExpression =
DbExpressionBuilder.Property(
DbExpressionBuilder.Constant(42),
EdmProperty.Primitive("Everything", PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.Int64)));

Since the declaring type is null. We should probably throw for this case and review other places in the DbExpressionBuilder where we assume that things that previously were not constructible publicly are set up correctly.


Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>