Merge pull request 'Added AdminIdentityDbContext extension' (#20) from setup into master

Reviewed-on: #20
This commit was merged in pull request #20.
This commit is contained in:
2026-06-06 01:40:10 +02:00
2 changed files with 26 additions and 0 deletions
@@ -0,0 +1,18 @@
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));
}
}
}
@@ -5,6 +5,14 @@
<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" />