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