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
I have simple model with statistics. I would like to calculate statistics on the fly using provided IQueryable. I could use ToSqlQuery but I'm worried about column and table naming. Actually there is ToQuery method but it's deprecated and does not attach instance to navigation property (even with correct SQL).
Related to #20339, although in this case the request is for an entity type to be mapped to a LINQ query rooted on some other set, and that query to be used anywhere the entity type is, including navigations.
I have simple model with statistics. I would like to calculate statistics on the fly using provided IQueryable. I could use
ToSqlQuery
but I'm worried about column and table naming. Actually there isToQuery
method but it's deprecated and does not attach instance to navigation property (even with correct SQL).Model
Model Definition:
and then use it as:
Why there is no instance attached:
EF Core version: 7.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
The text was updated successfully, but these errors were encountered: