예제 #1
0
 public GenericModel Update(GenericModel model)
 {
     _context.Set <GenericModel>().Attach(model);
     _context.Entry(model).State = EntityState.Modified;
     return(model);
 }
예제 #2
0
 public GenericDAO(WebStoreContext context)
 {
     _context = context;
     dbSet    = context.Set <GenericModel>();
 }