Skip to content

Commit 847c547

Browse files
author
Stephane Royer
committed
Fix synchronization object type in MultiTenantDbContext and update build task arguments
1 parent b95f03d commit 847c547

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/.vscode/tasks.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"build",
1414
"${workspaceFolder}/Paillave.Etl.sln",
1515
"/property:GenerateFullPaths=true",
16-
"/consoleloggerparameters:NoSummary"
16+
"/consoleloggerparameters:NoSummary",
17+
"/p:WarningLevel=0",
1718
],
1819
"problemMatcher": "$msCompile"
1920
},

src/Paillave.EntityFrameworkCoreExtension/Core/MultiTenantDbContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public interface ITenantProvider
1616
}
1717
public class MultiTenantDbContext(DbContextOptions options, ITenantProvider? tenantProvider = null) : DbContext(options)
1818
{
19-
private readonly Lock _sync = new();
19+
private readonly object _sync = new();
2020
protected override void OnModelCreating(ModelBuilder modelBuilder)
2121
{
2222
modelBuilder.ApplyConfigurationsFromAssembly(this.GetType().Assembly);

0 commit comments

Comments
 (0)