fix 自增标识

This commit is contained in:
izory 2021-09-06 17:06:36 +08:00
parent f112d6a992
commit 23187ed8c5

View File

@ -13,7 +13,7 @@ namespace ZR.Model.System
/// 菜单ID /// 菜单ID
/// </summary> /// </summary>
//[Key]//非自动增长主键时使用ExplicitKey //[Key]//非自动增长主键时使用ExplicitKey
[SqlSugar.SugarColumn(IsPrimaryKey = true)] [SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public long menuId { get; set; } public long menuId { get; set; }
/// <summary> /// <summary>
/// 菜单名称 /// 菜单名称