3 types derived from BloggingContext
Diagnostics.EFCore.FunctionalTests (3)
TestModels\BloggingContextWithMigrations.cs (1)
10public class BloggingContextWithMigrations : BloggingContext
TestModels\BloggingContextWithPendingModelChanges.cs (1)
10public class BloggingContextWithPendingModelChanges : BloggingContext
TestModels\BloggingContextWithSnapshotThatThrows.cs (1)
11public class BloggingContextWithSnapshotThatThrows : BloggingContext
1 instantiation of BloggingContext
Diagnostics.EFCore.FunctionalTests (1)
DatabaseErrorPageMiddlewareTest.cs (1)
426var db = new BloggingContext(optionsBuilder.Options);
18 references to BloggingContext
Diagnostics.EFCore.FunctionalTests (18)
DatabaseErrorPageMiddlewareTest.cs (16)
104using var host = await SetupServer<BloggingContext, DatabaseErrorButNoMigrationsMiddleware>(database); 120var db = context.RequestServices.GetService<BloggingContext>(); 137using var host = await SetupServer<BloggingContext, NoMigrationsMiddleware>(database); 145Assert.Contains(typeof(BloggingContext).Name, content); 158var db = context.RequestServices.GetService<BloggingContext>(); 172using (var server = await SetupServer<BloggingContext, NoMigrationsMiddleware>(database)) 174using (var db = server.Services.GetService<BloggingContext>()) 410m.StartsWith(StringsHelpers.GetResourceString("FormatDatabaseErrorPageMiddleware_ContextNotRegistered", typeof(BloggingContext)), StringComparison.Ordinal)); 426var db = new BloggingContext(optionsBuilder.Options); 483using var host = await SetupServer<BloggingContext, WrappedExceptionMiddleware>(database); 492Assert.Contains(typeof(BloggingContext).Name, content); 503var db = context.RequestServices.GetService<BloggingContext>();
MigrationsEndPointMiddlewareTest.cs (2)
219new KeyValuePair<string, string>("context", typeof(BloggingContext).AssemblyQualifiedName) 226Assert.StartsWith(StringsHelpers.GetResourceString("FormatMigrationsEndPointMiddleware_ContextNotRegistered", typeof(BloggingContext).AssemblyQualifiedName), content);