From 690ab39edd42a5df8649c2295ced54619682b64b Mon Sep 17 00:00:00 2001 From: Lzh666 <422235757@qq.com> Date: Tue, 10 Jun 2025 10:27:05 +0000 Subject: [PATCH] =?UTF-8?q?update=20Admin.NET/Admin.NET.Core/SqlSugar/SqlS?= =?UTF-8?q?ugarSetup.cs.=20=E9=99=90=E5=88=B6=E5=8F=AA=E5=AF=B9=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E5=92=8C=E7=B1=BB=E5=9E=8B=E7=9B=B8=E5=90=8C=E7=9A=84?= =?UTF-8?q?Id=E5=B1=9E=E6=80=A7=E8=B0=83=E6=95=B4=E5=80=BC=EF=BC=9B?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=85=B6=E4=BB=96=E7=B1=BB=E5=9E=8B=E6=9C=89?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=80=BC=E4=B8=BA0=E7=9A=84=E5=9C=BA?= =?UTF-8?q?=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lzh666 <422235757@qq.com> --- Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs b/Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs index c34ec2d69..1e88d779f 100644 --- a/Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs +++ b/Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs @@ -575,7 +575,7 @@ public static class SqlSugarSetup foreach (var data in seedData) { var idProperty = data.GetType().GetProperty(nameof(EntityBaseId.Id)); - if (idProperty == null) continue; + if (idProperty == null || idProperty.PropertyType != typeof(Int64)) continue; var idValue = idProperty.GetValue(data); if (idValue == null || idValue.ToString() == "0" || string.IsNullOrWhiteSpace(idValue.ToString())) -- Gitee