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
In an EF Select clause, if the object is a record, the query fails with an exception that it can't be translated (something with ParameterQueryRootExpression).
When using anonymous objects or classes, things work as intended.
Repro:
await _dbContext.MyTable.Where(...).Select(m => new Record(m.Column1, m.Column2)).ToListAsync();
The text was updated successfully, but these errors were encountered:
In an EF Select clause, if the object is a record, the query fails with an exception that it can't be translated (something with
ParameterQueryRootExpression
).When using anonymous objects or classes, things work as intended.
Repro:
The text was updated successfully, but these errors were encountered: