예제 #1
0
 public Repository(NhanSuTCDContext context)
 {
     if (context != null)
     {
         this.context = context;
         this.DbSet   = context.Set <T>();
     }
     else
     {
         throw new ArgumentNullException("DbContext");
     }
 }
예제 #2
0
 public UnitOfWork()
 {
     context = new NhanSuTCDContext();
 }