/// <summary>
 /// Returns all entites contained in the entity set, including entities marked as deleted.
 /// </summary>
 IEnumerable <TEntity> IEntitySet <TEntity> .GetAllEntities()
 {
     return(_entitySet.GetAllEntities());
 }