Пример #1
0
 public OrmStorage(
     DbContext dbContext,
     Func <Exception, StorageResult> analyzeException,
     IAuditVisitor auditVisitor)
 {
     this.dbContext        = dbContext;
     this.analyzeException = analyzeException;
     this.auditVisitor     = auditVisitor;
 }
Пример #2
0
 public OrmStorage(
     DbContext dbContext,
     Func <Exception, StorageResult> analyzeException,
     IAuditVisitor auditVisitor = null)
 {
     this.dbContext        = dbContext;
     this.analyzeException = analyzeException;
     this.auditVisitor     = auditVisitor ?? NoAuditVisitor.Singleton;
 }
Пример #3
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;
 }
Пример #4
0
 public Batch(DbContext context, IAuditVisitor auditVisitor)
 {
     this.context      = context;
     this.auditVisitor = auditVisitor;
 }