示例#1
0
 public void UpdateCourse(Course course)
 {
     context.Entry(course).State = EntityState.Modified;
 }
示例#2
0
 public void UpdateCategory(Category category)
 {
     context.Entry(category).State = EntityState.Modified;
 }
示例#3
0
 public virtual void Update(T entity)
 {
     context.Set <T>().Attach(entity);
     context.Entry(entity).State = EntityState.Modified;
 }