瀏覽代碼

update Admin.NET/Admin.NET.Core/Entity/EntityBase.cs.
修复因为主键无ColumnName注解导致生成前端代码时没有主键ID而报错的BUG

Signed-off-by: Bursel <12917271+bursel@user.noreply.gitee.com>

Bursel 2 年之前
父節點
當前提交
0b78d6da2d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Admin.NET/Admin.NET.Core/Entity/EntityBase.cs

+ 1 - 1
Admin.NET/Admin.NET.Core/Entity/EntityBase.cs

@@ -17,7 +17,7 @@ public abstract class EntityBaseId
     /// <summary>
     /// 雪花Id
     /// </summary>
-    [SugarColumn(ColumnDescription = "Id", IsPrimaryKey = true, IsIdentity = false)]
+    [SugarColumn(ColumnName = "Id", ColumnDescription = "主键Id", IsPrimaryKey = true, IsIdentity = false)]
     public virtual long Id { get; set; }
 }