Skip to content

Commit 28724c4

Browse files
author
fabien.menager
committed
Fix linq2db benchmark
1 parent 246c1f4 commit 28724c4

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;
@@ -94,7 +95,10 @@ public void RawInsert()
9495
[Benchmark]
9596
public async Task Linq2Db()
9697
{
97-
await DbContext.BulkCopyAsync(data);
98+
await DbContext.BulkCopyAsync(new BulkCopyOptions
99+
{
100+
BulkCopyType = BulkCopyType.ProviderSpecific,
101+
}, data);
98102
}
99103

100104
[Benchmark]

0 commit comments

Comments
 (0)