1 instantiation of BloggingContextWithMigrations
Diagnostics.EFCore.FunctionalTests (1)
TestModels\BloggingContextWithMigrations.cs (1)
19
return new
BloggingContextWithMigrations
(options);
17 references to BloggingContextWithMigrations
Diagnostics.EFCore.FunctionalTests (17)
DatabaseErrorPageMiddlewareTest.cs (9)
198
using var host = await SetupServer<
BloggingContextWithMigrations
, PendingMigrationsMiddleware>(database);
207
Assert.Contains(typeof(
BloggingContextWithMigrations
).Name, content);
223
var
db = context.RequestServices.GetService<
BloggingContextWithMigrations
>();
277
using var host = await SetupServer<
BloggingContextWithMigrations
, ApplyMigrationsMiddleware>(database);
282
var expectedContextType = typeof(
BloggingContextWithMigrations
).AssemblyQualifiedName;
319
var
db = context.RequestServices.GetService<
BloggingContextWithMigrations
>();
353
services.AddDbContext<
BloggingContextWithMigrations
>(
MigrationsEndPointMiddlewareTest.cs (4)
104
services.AddDbContext<
BloggingContextWithMigrations
>(options =>
115
using (
var
db =
BloggingContextWithMigrations
.CreateWithoutExternalServiceProvider(optionsBuilder.Options))
122
new KeyValuePair<string, string>("context", typeof(
BloggingContextWithMigrations
).AssemblyQualifiedName)
TestModels\BloggingContextWithMigrations.cs (4)
17
public static
BloggingContextWithMigrations
CreateWithoutExternalServiceProvider(DbContextOptions options)
33
[DbContext(typeof(
BloggingContextWithMigrations
))]
40
[DbContext(typeof(
BloggingContextWithMigrations
))]
64
[DbContext(typeof(
BloggingContextWithMigrations
))]