我正在尝试使用表达式树查询数据库。我一点运气都没有。我正在使用EF Core。我得到了cannot be used for parameter of type 'System.Linq.IQueryable`1[TestExpression.Model.Status]'
of method 'Boolean Contains[Status](System.Linq.IQueryable`1[Test
这在EF 6.4中起了作用:group a by new {a.StreetName, a.StreetNumber} into agrpfrom aitem in agrp如果EF核心5我得到:
InvalidOperationException: LINQ表达式'agrp => agrp‘无法翻译
在.net核心EF核心之后,Linq无法翻译并将在本地进行评估。你能给我提个建议吗?temp1 select oLINQ表达式'join AnonymousObject _o in {from IGrouping2 g in {from OrderShippingOrder so in value(Mic