protected EfCoreAsyncRepositoryBase(IEfCoreDatabaseFactory <TDatabseType> databaseFactory, Func <TEntityType, TPrimaryKeyType> entityPrimaryKeyFunc) { _entityPrimaryKeyFunc = entityPrimaryKeyFunc; DatabaseFactory = databaseFactory; _dbset = DataContext.Set <TEntityType>(); }
public EfCoreAccountRepository(IEfCoreDatabaseFactory <SharedLibraryContext> databaseFactory) : base(databaseFactory, entity => entity.AccountId) { }
public EfCoreAsyncUnitOfWork(IEfCoreDatabaseFactory <T> databaseFactory) { _databaseFactory = databaseFactory; }