コード例 #1
0
ファイル: UnitOfWork.cs プロジェクト: deletescape/atanet
 public UnitOfWork(IConnectionStringBuilder connectionStringBuilder, IBusinessRuleRegistry businessRuleRegistry)
 {
     this.RegisterRepositories();
     this.connectionStringBuilder = connectionStringBuilder;
     this.atanetDbContext         = this.CreateContext();
     this.businessRuleRegistry    = businessRuleRegistry;
     this.changeTracker           = this.atanetDbContext.ChangeTracker;
 }
コード例 #2
0
 public Repository(AtanetDbContext atanetDbContext) =>
 this.atanetDbContext = atanetDbContext;