public Transaction(CleanArchitectureExampleContext context)
 {
     this.transaction = context.Database.BeginTransaction();
 }
示例#2
0
 public TransactionFactory(CleanArchitectureExampleContext context)
 {
     this.context = context;
 }
示例#3
0
 public EntityRepository(CleanArchitectureExampleContext context)
 {
     this.context              = context;
     this.entities             = context.Set <TEntity>();
     this.entitiesAsNoTracking = context.Set <TEntity>().AsNoTracking();
 }