Пример #1
0
 public void DeleteRails(List <Rails> todel)
 {
     using (DAL.DevEntities context = new DevEntities())
     {
         context.BulkDelete(todel);
         context.BulkSaveChanges();
     }
 }
Пример #2
0
 public void InsertGoods(List <Goods> Goods)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkInsert(Goods);
         context.BulkSaveChanges();
     }
 }
Пример #3
0
 public void UpdateGoods(List <Goods> Goods)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkUpdate(Goods);
         context.BulkSaveChanges();
     }
 }
Пример #4
0
 public void InsertMapItems(List <MapItems> MapItems)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkInsert(MapItems);
         context.BulkSaveChanges();
     }
 }
Пример #5
0
 public void UpdateMapItem(List <MapItems> MapItems)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkUpdate(MapItems);
         context.BulkSaveChanges();
     }
 }
Пример #6
0
 public void InsertMapDictionary(List <MapDictionary> mapDictionaries)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkInsert(mapDictionaries);
         context.BulkSaveChanges();
     }
 }
Пример #7
0
 public void InsertTypes(List <Types> insertList)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkInsert(insertList);
         context.BulkSaveChanges();
     }
 }
Пример #8
0
 public void UpdateSpecialConnections(List <SpecialConnection> update)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkUpdate(update);
         context.BulkSaveChanges();
     }
 }
Пример #9
0
 public void DeleteCargoWaysLocks(List <CargoWaysLock> delete)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkDelete(delete);
         context.BulkSaveChanges();
     }
 }
Пример #10
0
 public void DeleteSpecialConnections(List <SpecialConnection> delete)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkDelete(delete);
         context.BulkSaveChanges();
     }
 }
Пример #11
0
 public void InsertSpecialConnections(List <SpecialConnection> insert)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkInsert(insert);
         context.BulkSaveChanges();
     }
 }
Пример #12
0
 public void UpdateZone(List <Zone> Zones)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkUpdate(Zones);
         context.BulkSaveChanges();
     }
 }
Пример #13
0
 public void InsertZone(List <Zone> Zones)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkInsert(Zones);
         context.BulkSaveChanges();
     }
 }
Пример #14
0
 public void UpdateTypes(List <Types> updateList)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkUpdate(updateList);
         context.BulkSaveChanges();
     }
 }
Пример #15
0
 public void InsertRails(List <Rails> toadd)
 {
     using (DAL.DevEntities context = new DevEntities())
     {
         context.BulkInsert(toadd);
         context.BulkSaveChanges();
     }
 }
Пример #16
0
 public void InsertCargoWaysLocks(List <CargoWaysLock> addition)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkInsert(addition);
         context.BulkSaveChanges();
     }
 }
Пример #17
0
 public void UpdateRails(List <Rails> rails)
 {
     using (DAL.DevEntities context = new DevEntities())
     {
         context.BulkUpdate(rails);
         context.BulkSaveChanges();
     }
 }
Пример #18
0
 public void UpdateCargoWaysLocks(List <CargoWaysLock> update)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkUpdate(update);
         context.BulkSaveChanges();
     }
 }
Пример #19
0
 public void UpdateMapDictionary(List <MapDictionary> mapDictionaries)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkUpdate(mapDictionaries);
         context.BulkSaveChanges();
     }
 }
Пример #20
0
 public void DeleteTypes(List <Types> delList)
 {
     using (DevEntities context = new DevEntities())
     {
         context.BulkDelete(delList);
         context.BulkSaveChanges();
     }
 }