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