We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0888b1d commit 6fa2581Copy full SHA for 6fa2581
tests/Thinktecture.EntityFrameworkCore.Relational.Tests/IntegrationTestsBase.cs
@@ -29,8 +29,10 @@ protected override void ConfigureTestDbContextProvider(SqliteTestDbContextProvid
29
.UseMigrationLogLevel(LogLevel.Warning)
30
.ConfigureOptions(optionsBuilder => ConfigureOptionsBuilder?.Invoke(optionsBuilder))
31
.InitializeContext(ctx => ctx.ConfigureModel = ConfigureModel)
32
- .UseContextFactory(options => new DbContextWithSchema(options, Schema))
33
- .DisableModelCache();
+ .UseContextFactory(options => new DbContextWithSchema(options, Schema));
+
34
+ if (ConfigureModel is not null || Schema is not null)
35
+ builder.DisableModelCache();
36
}
37
38
protected DbContextWithSchema CreateContextWithSchema(string schema)
0 commit comments