2 writes to Model
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
DatabaseDeveloperPageExceptionFilter.cs (1)
81
Model
= new DatabaseErrorPageModel(dbException, contextDetails, _options, errorContext.HttpContext.Request.PathBase)
DatabaseErrorPageMiddleware.cs (1)
104
Model
= new DatabaseErrorPageModel(exception, new DatabaseContextDetails[] { details }, _options, httpContext.Request.PathBase)
6 references to Model
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (6)
Views\DatabaseErrorPage.Designer.cs (6)
151
for (Exception? ex =
Model
.Exception; ex != null; ex = ex.InnerException)
185
var contextWithNoDBOrMigrations =
Model
.ContextDetails.Where(c => !c.DatabaseExists && !c.PendingMigrations.Any());
286
var contextWithPendingMigrations =
Model
.ContextDetails.Where(c => c.PendingMigrations.Any()).Except(contextWithNoDBOrMigrations);
414
Write(JavaScriptEncode(
Model
.PathBase.Add(
Model
.Options.MigrationsEndPointPath).Value!));
478
var contextWithPendingModelChanges =
Model
.ContextDetails.Where(c => c.PendingModelChanges).Except(contextWithNoDBOrMigrations).Except(contextWithPendingMigrations);