File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/MongoFramework/Infrastructure/Querying Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ public static BsonString GetFieldName(Expression expression)
147
147
148
148
while ( true )
149
149
{
150
- if ( currentExpression is BinaryExpression binaryExpression && expression . NodeType == ExpressionType . ArrayIndex )
150
+ if ( currentExpression is BinaryExpression binaryExpression && currentExpression . NodeType == ExpressionType . ArrayIndex )
151
151
{
152
152
//The index is on the right
153
153
var arrayIndex = TranslateSubExpression ( binaryExpression . Right ) ;
154
- partialNamePieces . Push ( arrayIndex . AsString ) ;
154
+ partialNamePieces . Push ( arrayIndex . ToString ( ) ) ;
155
155
156
156
//The parent expression is on the left
157
157
currentExpression = binaryExpression . Left ;
@@ -169,7 +169,7 @@ public static BsonString GetFieldName(Expression expression)
169
169
}
170
170
else
171
171
{
172
- throw new ArgumentException ( $ "Unexpected node type { expression . NodeType } .") ;
172
+ throw new ArgumentException ( $ "Unexpected node type { currentExpression . NodeType } .") ;
173
173
}
174
174
}
175
175
}
You can’t perform that action at this time.
0 commit comments