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