Fix startup admin seeding connection scope
This commit is contained in:
@@ -75,7 +75,11 @@ builder.Services.AddDbContext<JobTrackerContext>((sp, options) =>
|
||||
|
||||
// We create Identity tables on startup in environments where `dotnet ef` isn't available.
|
||||
// That can cause EF to detect "pending model changes" and throw on Migrate(). Ignore it.
|
||||
options.ConfigureWarnings(w => w.Ignore(RelationalEventId.PendingModelChangesWarning));
|
||||
options.ConfigureWarnings(w =>
|
||||
{
|
||||
w.Ignore(RelationalEventId.PendingModelChangesWarning);
|
||||
w.Ignore(CoreEventId.PossibleIncorrectRequiredNavigationWithQueryFilterInteractionWarning);
|
||||
});
|
||||
});
|
||||
|
||||
// Enable CORS (allowlist by default)
|
||||
|
||||
Reference in New Issue
Block a user