コード例 #1
0
ファイル: UnitOfWork.cs プロジェクト: Humberfrench/JimHalpert
 public UnitOfWork(IContextManager contextManager)
 {
     this.dbContext   = contextManager.GetContext();
     validationResult = new ValidationResult();
 }
コード例 #2
0
 public BaseRepository(IContextManager contextManager)
 {
     this.contextManager = contextManager;
     this.Context        = contextManager.GetContext();
     this.DbSet          = Context.Set <TEntity>();
 }