예제 #1
0
 public UnitOfWork()
 {
     _context = new MyDBEntities();
 }
 public GenericRepository(MyDBEntities context)
 {
     this.Context = context;
     this.DbSet   = context.Set <TEntity>();
 }