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