Esempio n. 1
0
 public ReliantOrmHandlerGFactory(
     IRepositoryContainer <TDbContext> repositoryGFactory,
     IOrmContainer <TDbContext> ormGFactory,
     IEntityMetaServiceContainer entityMetaServiceContainer,
     IAuditVisitor auditVisitor,
     TDbContext dbContext
     )
 {
     this.dbContext                  = dbContext;
     this.auditVisitor               = auditVisitor;
     this.repositoryGFactory         = repositoryGFactory;
     this.ormGFactory                = ormGFactory;
     this.entityMetaServiceContainer = entityMetaServiceContainer;
 }
Esempio n. 2
0
 private LoggingDomStorageRoutineHandlerAsync(
     IEntityMetaServiceContainer entityMetaServiceContainer,
     TUserContext userContext,
     Func <LoggingDomDbContext> createDbContext,
     IHandlerAsync <RoutineClosure <TUserContext> > routineHandler,
     Func <TUserContext, string> getAudit) :
     base(
         entityMetaServiceContainer,
         createDbContext,
         () => new ValueTuple <LoggingDomDbContext, IAuditVisitor>(
             createDbContext(),
             new AuditVisitor <IVersioned>(
                 (e) => { e.RowVersionAt = DateTime.Now; e.RowVersionBy = getAudit(userContext); })
             ),
         routineHandler)
 {
 }
 public EfCoreStorageRoutineHandlerAsync(
     IEntityMetaServiceContainer entityMetaServiceContainer,
     Func <TDbContext> createDbContext,
     Func <(TDbContext, IAuditVisitor)> createDbContextForStorage,