示例#1
0
 public bool Any()
 {
     return(InsertingEntities.Any() || UpdatingEntities.Any() || DeletingEntities.Any());
 }
示例#2
0
 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()));
 }