Exemple #1
0
        public EFUnitOfWorkFactory(ILifetimeScope lifetime, ICurrentUnitOfWork currentUnitOfWork)
        {
            if (lifetime == null)
            {
                throw new ArgumentNullException(nameof(lifetime));
            }

            _lifetime          = lifetime;
            _currentUnitOfWork = currentUnitOfWork;
        }
Exemple #2
0
 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);
 }
Exemple #3
0
 public MongoDbAsyncRepository(
     IMongoDbDatabaseResolver databaseResolver,
     ICurrentUnitOfWork currentUnitOfWork     = null,
     ICoreSessionProvider coreSessionProvider = null) : base(databaseResolver, currentUnitOfWork, coreSessionProvider)
 {
 }
 public DbContextProvider(ICurrentUnitOfWork currentUnitOfWork)
 {
     _currentUnitOfWork = currentUnitOfWork;
 }
Exemple #5
0
 public EFDbContextResolver(ICurrentUnitOfWork currentUnitOfWork)
 {
     _currentUnitOfWork = currentUnitOfWork;
 }