Пример #1
0
 public void SyncObjectState(object entity)
 {
     Entry(entity).State = StateHelper.ConvertState(((IObjectState)entity).ObjectState);
 }
Пример #2
0
 public void SyncObjectState <TEntity>(TEntity entity) where TEntity : class, IObjectState
 {
     Entry(entity).State = StateHelper.ConvertState(entity.ObjectState);
 }