Пример #1
0
 public void DeleteBulk(IEnumerable <T> entities, string tableName)
 {
     BulkOperation.Operation bulkOperation = new BulkOperation.Operation(context.Database);
     bulkOperation.BulkInsert(entities, tableName);
 }
Пример #2
0
 public void InsertBulk(IEnumerable <T> entities, string parentTableName, int batchSize)
 {
     BulkOperation.Operation bulkOperation = new BulkOperation.Operation(context.Database);
     bulkOperation.BulkInsert(entities, parentTableName, batchSize);
 }