EF Core “Group By could not be translated and will be evaluated locally.”
问题 I am running a simple query against an Sql Server database using Entity Framework Core 2.2.6 however the GroupBy is not being executed on the server, instead it is being executed locally. Is there something i'm missing that will force the group by onto the server? The 2 variations of EF query i have tried: public class Holiday { public int Id {get;set;} public DateTime Date {get;set;} public string Username {get;set;} public string Approver {get;set;} } //version 1 await _dbContext.Holidays