Skip to content

Commit df2e124

Browse files
author
fabien.menager
committed
Merge branch 'main' into feature/oracle
2 parents 6e2b8d7 + 28724c4 commit df2e124

5 files changed

Lines changed: 5 additions & 1 deletion

File tree

images/bench-mysql.png

270 Bytes
Loading

images/bench-postgresql.png

-159 Bytes
Loading

images/bench-sqlite.png

-2 Bytes
Loading

images/bench-sqlserver.png

-62 Bytes
Loading

tests/PhenX.EntityFrameworkCore.BulkInsert.Benchmark/LibComparator.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using EFCore.BulkExtensions;
77

8+
using LinqToDB.Data;
89
using LinqToDB.EntityFrameworkCore;
910

1011
using PhenX.EntityFrameworkCore.BulkInsert.Extensions;
@@ -99,7 +100,10 @@ public void RawInsert()
99100
[Benchmark]
100101
public async Task Linq2Db()
101102
{
102-
await DbContext.BulkCopyAsync(data);
103+
await DbContext.BulkCopyAsync(new BulkCopyOptions
104+
{
105+
BulkCopyType = BulkCopyType.ProviderSpecific,
106+
}, data);
103107
}
104108

105109
[Benchmark]

0 commit comments

Comments
 (0)