Ejemplo n.º 1
0
 public void DeleteBulk(IEnumerable <T> entities, string tableName)
 {
     BulkOperation.Operation bulkOperation = new BulkOperation.Operation(context.Database);
     bulkOperation.BulkInsert(entities, tableName);
 }
Ejemplo n.º 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);
 }