Exemplo n.º 1
0
 public UnitOfWork(IConnectionStringBuilder connectionStringBuilder, IBusinessRuleRegistry businessRuleRegistry)
 {
     this.RegisterRepositories();
     this.connectionStringBuilder = connectionStringBuilder;
     this.atanetDbContext         = this.CreateContext();
     this.businessRuleRegistry    = businessRuleRegistry;
     this.changeTracker           = this.atanetDbContext.ChangeTracker;
 }
Exemplo n.º 2
0
 public Repository(AtanetDbContext atanetDbContext) =>
 this.atanetDbContext = atanetDbContext;