Added AdminIdentityDbContext extension
This commit is contained in:
+18
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user