EF Core 3 DbQuery equivalent functionality
问题 In ef core 2.2 I have used DbQuery to map raw sql results to object as following: public partial class AppDbContext{ public DbQuery<SimpleQueryModel> SimpleQM {get;set;} } and then var result=_dbContext.SimpleQM.FromSql(sqlString,params); this wouldn't create any extra table and working just fine. In ef core 3.1 DbQuery is obsolete and telling me to use keyless DbSet instead. I have configured it as following: public partial class AppDbContext{ public DbSet<SimpleQueryModel> SimpleQM {get;set