fix: temp downgrade to efcore8
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Directory API - Build & Deploy / Build (push) Has been cancelled
Directory API - Build & Deploy / Deploy (push) Has been cancelled

This commit is contained in:
Collin Barrett 2025-02-15 20:43:30 -06:00 committed by Collin Barrett
parent 9b43d73b97
commit ffc38bc529
3 changed files with 3 additions and 6 deletions

View file

@ -24,7 +24,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.2">
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.13">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

View file

@ -23,10 +23,7 @@ public static void AddInfrastructure(this IHostApplicationBuilder builder)
.UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking)
.EnableSensitiveDataLogging(string.Equals(
Environment.GetEnvironmentVariable("DOTNET_RUNNING_EF_CORE_TOOLS"), "true",
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)));
StringComparison.OrdinalIgnoreCase)));
builder.Services.AddHostedService<MigrationService>();
builder.Services.AddMemoryCache();

View file

@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
<PackageReference Include="Aspire.Microsoft.EntityFrameworkCore.SqlServer" Version="8.2.2" />
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0"/>
</ItemGroup>