public UnitOfWork(IConnectionStringBuilder connectionStringBuilder, IBusinessRuleRegistry businessRuleRegistry) { this.RegisterRepositories(); this.connectionStringBuilder = connectionStringBuilder; this.atanetDbContext = this.CreateContext(); this.businessRuleRegistry = businessRuleRegistry; this.changeTracker = this.atanetDbContext.ChangeTracker; }
public Repository(AtanetDbContext atanetDbContext) => this.atanetDbContext = atanetDbContext;