NewLife/X

feat: IManageUser 增加 Id 并保留过时 ID 别名
石头 authored at 2026-11-19 22:14:39
975114c
Tree
1 Parent(s) 0ff9fc5
Summary: 1 changed files with 5 additions and 0 deletions.
Modified +5 -0
Modified +5 -0
diff --git a/NewLife.Core/Model/IManageUser.cs b/NewLife.Core/Model/IManageUser.cs
index 35f9976..93b572a 100644
--- a/NewLife.Core/Model/IManageUser.cs
+++ b/NewLife.Core/Model/IManageUser.cs
@@ -5,6 +5,11 @@ public interface IManageUser
 {
     #region 属性
     /// <summary>编号</summary>
+    Int32 Id { get; set; }
+
+    /// <summary>编号</summary>
+    /// <remarks>兼容旧版本,新代码请使用 Id</remarks>
+    [Obsolete("请使用 Id")]
     Int32 ID { get; set; }
 
     /// <summary>名称</summary>