예제 #1
0
 public override void Update(T entity)
 {
     if (entity.ObjectState != ObjectStateType.PartialModified)
     {
         entity.ObjectState = ObjectStateType.Modified;
     }
     efContext.RegisterModified(entity);
     efContext.DbContext.ApplyChanges(new List <T> {
         entity
     });
 }
예제 #2
0
 protected override void DoUpdate(T entity)
 {
     efContext.RegisterModified(entity);
 }