I migrate my application to ASP.NET MVC Core and Entity Framework Core and i found problem. I have raw SQL query to entity like this
var rawSQL = dbContext.Database.SqlQuery<SomeModel>("Raw SQL Query").ToList();
But there is no SqlQuery<T>
in context.Database
. Do you have solution for this problem?
dbContext
properly initialized asEntities
?