示例#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);
 }