示例#1
0
 public void Update(User user)
 {
     dbContext.Entry(user).State = EntityState.Modified;
 }
示例#2
0
 public void Update(Photo photo)
 {
     dbContext.Entry(photo).State = EntityState.Modified;
 }