mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix: temp suppress pending model changes warning
This commit is contained in:
parent
240c1ed29b
commit
9b43d73b97
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using FilterLists.Directory.Infrastructure.Persistence.Queries;
|
||||
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Diagnostics;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
|
|
@ -22,7 +23,11 @@ public static void AddInfrastructure(this IHostApplicationBuilder builder)
|
|||
.UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking)
|
||||
.EnableSensitiveDataLogging(string.Equals(
|
||||
Environment.GetEnvironmentVariable("DOTNET_RUNNING_EF_CORE_TOOLS"), "true",
|
||||
StringComparison.OrdinalIgnoreCase)));
|
||||
StringComparison.OrdinalIgnoreCase))
|
||||
|
||||
// TODO: use new seeding pattern https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-9.0/whatsnew#improved-data-seeding
|
||||
.ConfigureWarnings(w => w.Ignore(RelationalEventId.PendingModelChangesWarning)));
|
||||
|
||||
builder.Services.AddHostedService<MigrationService>();
|
||||
builder.Services.AddMemoryCache();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue