示例#1
0
 public IEnumerable <Model> RemoveEntities(ProFootballDbEntities dbContext, IEnumerable <Model> entities)
 {
     return(dbContext.Entities.RemoveRange(entities));
 }
示例#2
0
 public async Task LoadEntitiesAsync(ProFootballDbEntities dbContext)
 {
     await dbContext.Entities.LoadAsync();
 }
示例#3
0
 public Model RemoveEntity(ProFootballDbEntities dbContext, Model entity)
 {
     return(dbContext.Entities.Remove(entity));
 }
示例#4
0
 public async Task <IEnumerable <Model> > GetEntitiesAsync(ProFootballDbEntities dbContext)
 {
     return(await dbContext.Entities.ToListAsync());
 }
示例#5
0
 public void LoadEntities(ProFootballDbEntities dbContext)
 {
     dbContext.Entities.Load();
 }
示例#6
0
 public async Task <Model> FindEntityAsync(ProFootballDbEntities dbContext, params object[] keyValues)
 {
     return(await dbContext.Entities.FindAsync(keyValues));
 }
示例#7
0
 public IEnumerable <Model> GetEntities(ProFootballDbEntities dbContext)
 {
     return(dbContext.Entities);
 }
示例#8
0
 public Model FindEntity(ProFootballDbEntities dbContext, params object[] keyValues)
 {
     return(dbContext.Entities.Find(keyValues));
 }
示例#9
0
 public void EditEntity(ProFootballDbEntities dbContext, Model entity)
 {
     dbContext.Entry(entity).State = EntityState.Modified;
 }
示例#10
0
 public Model CreateEntity(ProFootballDbEntities dbContext)
 {
     return(dbContext.Entities.Create());
 }
示例#11
0
 public IEnumerable <Model> AddEntities(ProFootballDbEntities dbContext, IEnumerable <Model> entities)
 {
     return(dbContext.Entities.AddRange(entities));
 }
示例#12
0
 public Model AddEntity(ProFootballDbEntities dbContext, Model entity)
 {
     return(dbContext.Entities.Add(entity));
 }