You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.Collections.Generic.KeyNotFoundException : The given key 'EmptyProjectionMember' was not present in the dictionary.
Stack Trace:
Dictionary`2.get_Item(TKey key)
SelectExpression.GetProjection(ProjectionBindingExpression projectionBindingExpression) line 1414
RelationalSqlTranslatingExpressionVisitor.BindProperty(StructuralTypeReferenceExpression typeReference, IProperty property) line 1367
RelationalSqlTranslatingExpressionVisitor.TryBindMember(Expression source, MemberIdentity member, Expression& expression, IPropertyBase& property) line 1257
RelationalSqlTranslatingExpressionVisitor.TryBindMember(Expression source, MemberIdentity member, Expression& expression) line 1227
RelationalSqlTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) line 769
SqlServerSqlTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) line 202
RelationalSqlTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) line 840
SqlServerSqlTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) line 202
RelationalSqlTranslatingExpressionVisitor.VisitBinary(BinaryExpression binaryExpression) line 422
<35 more frames...>
We are trying to rewrite this to entity equlity. Source we try to bind is:
SELECT TOP(1) p1.Foo
FROM OPENJSON(b0.Posts, '') WITH (Foo int 'Foo', Title nvarchar(max) 'Title') AS p1
ORDER BY CAST(p1.key AS int) ASC
and the property is Title.
This is likely invalid scenario (JSON entity comparison), but there might be similar cases like this that are valid, but still fail currently - need to investigate further
The text was updated successfully, but these errors were encountered:
For future follow up:
throws:
We are trying to rewrite this to entity equlity. Source we try to bind is:
and the property is Title.
This is likely invalid scenario (JSON entity comparison), but there might be similar cases like this that are valid, but still fail currently - need to investigate further
The text was updated successfully, but these errors were encountered: