public BackupedState(EntitySetState state)
 {
     IsLoaded       = state.IsLoaded;
     TotalItemCount = state.TotalItemCount;
     AddedKeys      = state.addedKeys.Values.ToList();
     RemovedKeys    = state.removedKeys.Values.ToList();
 }
 /// <summary>
 /// Register the specified <see cref="EntitySetState"/>.
 /// </summary>
 /// <param name="entitySetState"><see cref="EntitySetState"/> to bound.</param>
 public void Register(EntitySetState entitySetState)
 {
     modifiedEntitySets.Add(entitySetState);
 }