From 58c4d6d5b2047421d0c7c964c0bbaa938d4fd7b5 Mon Sep 17 00:00:00 2001 From: zhangpeihang <948869991@qq.com> Date: Wed, 26 Jan 2022 15:40:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=85=8D=E7=BD=AE=E5=AE=9E=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EntityConfiguration.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/blazor/admin/BootstrapAdmin.DataAccess.EFCore/EntityConfiguration.cs b/src/blazor/admin/BootstrapAdmin.DataAccess.EFCore/EntityConfiguration.cs index 0dcc4dcb..d0ae80ab 100644 --- a/src/blazor/admin/BootstrapAdmin.DataAccess.EFCore/EntityConfiguration.cs +++ b/src/blazor/admin/BootstrapAdmin.DataAccess.EFCore/EntityConfiguration.cs @@ -30,18 +30,22 @@ public static class EntityConfiguration builder.Entity().Ignore(u => u.IsReset); builder.Entity().Property(s => s.Id).HasConversion(converter).ValueGeneratedOnAdd(); - builder.Entity().Property(s => s.Id).HasConversion(converter).ValueGeneratedOnAdd(); - builder.Entity().ToTable("Roles"); builder.Entity().Property(s => s.Id).HasConversion(converter).ValueGeneratedOnAdd(); builder.Entity().ToTable("Navigations"); - builder.Entity().Property(s => s.Id).HasConversion(converter).ValueGeneratedOnAdd(); + builder.Entity().Property(s => s.Id).HasConversion(converter!).ValueGeneratedOnAdd(); builder.Entity().Ignore(s => s.HasChildren); + builder.Entity().ToTable("Dicts"); builder.Entity().Property(s => s.Id).HasConversion(converter).ValueGeneratedOnAdd(); + builder.Entity().ToTable("Groups"); builder.Entity().Property(s => s.Id).HasConversion(converter).ValueGeneratedOnAdd(); + + builder.Entity().ToTable("Exceptions"); + builder.Entity().ToTable("LoginLogs"); + builder.Entity().ToTable("Traces"); } }