public bool Any() { return(InsertingEntities.Any() || UpdatingEntities.Any() || DeletingEntities.Any()); }
public CommitExecutingEntities <T, TDbContext> Entity <T>() where T : class { return(new CommitExecutingEntities <T, TDbContext>(InsertingEntities.OfType <T>().ToList(), UpdatingEntities.Where(x => x.Entity is T).Select(x => new UpdatingEntity <T, TDbContext>((T)x.Entity, Context)).ToList(), DeletingEntities.OfType <T>().ToList())); }