return this.dbContext.People.Where(...).ToListAsync();现在,为了将域层与数据访问层分离,我希望此方法位于域程序集中,并且该程序集不具有对EFCoreMethodWithDomainLogic() {
return this.entities.People.Where(...).ToListAsync(); // How to do this without referencing EFCore我已经解决了这个问题,在域层使用EFCore接口设置了我自己的接口
(参数'index')在System.Collections.Generic.List1.get_Item(Int32 index) at EFCore.BulkExtensions.TableInfo.UpdateEntitiesIdentity[T](IList1实体,IList1 entitiesWithOutputIdentity) at EFCore.BulkExtensions.TableInfo.LoadOutputData[T](DbContext context, IList1实体)在EF
Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter`2.Sanitize[T](Object value) in /_/src/EFCore<SanitizeConverter>b__0(Object v) in /_/src/EFCore/Storage/ValueConversion/ValueConverter`.cs:line 43<_TrackEntitie