public EFUnitOfWorkFactory(ILifetimeScope lifetime, ICurrentUnitOfWork currentUnitOfWork) { if (lifetime == null) { throw new ArgumentNullException(nameof(lifetime)); } _lifetime = lifetime; _currentUnitOfWork = currentUnitOfWork; }
public Repository(ISQLCommandMapping <tEntity, TPrimarykey> CommandMapping, ISQLDataQueryMapping <tEntity, TPrimarykey> QueryMapping, ISQLQuery SQLQuery) { _CommandMapping = CommandMapping; _QueryMapping = QueryMapping; _SQLQuery = SQLQuery; _CurrentUnitOfWork = DependencyManager.Instance.Resolver <ICurrentUnitOfWork>(); _CurrentUnitOfWork.CurrentUnitOfWork.SetRepository(this); }
public MongoDbAsyncRepository( IMongoDbDatabaseResolver databaseResolver, ICurrentUnitOfWork currentUnitOfWork = null, ICoreSessionProvider coreSessionProvider = null) : base(databaseResolver, currentUnitOfWork, coreSessionProvider) { }
public DbContextProvider(ICurrentUnitOfWork currentUnitOfWork) { _currentUnitOfWork = currentUnitOfWork; }
public EFDbContextResolver(ICurrentUnitOfWork currentUnitOfWork) { _currentUnitOfWork = currentUnitOfWork; }