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; }
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,