Merge pull request 'Added EF_CORE_SUPPRESS_PENDING_MODEL_CHANGES_WARNING' (#21) from setup into master
Reviewed-on: #21
This commit was merged in pull request #21.
This commit is contained in:
@@ -35,6 +35,7 @@ services:
|
||||
ports:
|
||||
- "8082:8080"
|
||||
environment:
|
||||
- EF_CORE_SUPPRESS_PENDING_MODEL_CHANGES_WARNING=true
|
||||
- ASPNETCORE_ENVIRONMENT=Production
|
||||
- ForwardedHeadersConfiguration__Enabled=true
|
||||
- ForwardedHeadersConfiguration__AllowAll=true
|
||||
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace LiteCharmsSecurity.Admin.EntityFramework.Shared.DbContexts
|
||||
{
|
||||
public partial class AdminIdentityDbContext
|
||||
{
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
|
||||
// Globally prevents EF Core 9+ from throwing an exception when model snapshot drift occurs
|
||||
optionsBuilder.ConfigureWarnings(warnings =>
|
||||
warnings.Ignore(RelationalEventId.PendingModelChangesWarning));
|
||||
}
|
||||
}
|
||||
}
|
||||
-8
@@ -5,14 +5,6 @@
|
||||
<Description>DbContexts and Identity entities for the administration of the Duende IdentityServer and Asp.Net Core Identity</Description>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="DbContexts\AdminIdentityDbContext.Extension.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="DbContexts\AdminIdentityDbContext.Extension.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="10.0.7" />
|
||||
<PackageReference Include="Skoruba.AuditLogging.EntityFramework" Version="3.0.0" />
|
||||
|
||||
Reference in New Issue
Block a user