Beispiel #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
     });
 }
Beispiel #2
0
 protected override void DoUpdate(T entity)
 {
     efContext.RegisterModified(entity);
 }