Explorar el Código

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

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

Bursel hace 2 años
padre
commit
0b78d6da2d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>
     /// <summary>
     /// 雪花Id
     /// 雪花Id
     /// </summary>
     /// </summary>
-    [SugarColumn(ColumnDescription = "Id", IsPrimaryKey = true, IsIdentity = false)]
+    [SugarColumn(ColumnName = "Id", ColumnDescription = "主键Id", IsPrimaryKey = true, IsIdentity = false)]
     public virtual long Id { get; set; }
     public virtual long Id { get; set; }
 }
 }