예제 #1
0
 public void UpdateModel(T model)
 {
     context.Set <T>().AddOrUpdate(model);
     // context.Entry(model).State = System.Data.Entity.EntityState.Modified;
 }
예제 #2
0
 public AllRepository(BloodBankContext _context)
 {
     context     = _context;
     this._DbSet = _context.Set <T>();
 }