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