修复排序错误

This commit is contained in:
2023-11-16 14:55:37 +08:00
parent 5b49890a4f
commit a5f3d473e6
15 changed files with 261 additions and 154 deletions

View File

@@ -1,8 +1,9 @@
using SqlSugar;
using Tnb;
namespace JNPF.Common.Contracts;
public class BaseEntity<TKey> : IEntity where TKey : IEquatable<TKey>
public class BaseEntity<TKey> : Entity, IEntity where TKey : IEquatable<TKey>
{
/// <summary>
/// 获取或设置 编号.
@@ -10,6 +11,8 @@ public class BaseEntity<TKey> : IEntity where TKey : IEquatable<TKey>
[SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true)]
public TKey id { get; set; }
public override object[] GetKeys()
{
return [id];
}
}