Skip to content

Commit 9400ce1

Browse files
committed
fix(orm-entity): 修复 EntitySelectBase 泛型约束错误
- 将 EntitySelectBase<TKey> 修改为继承 EntityBase<TKey> - 添加 where TKey : notnull 约束 - 修复泛型参数命名与实际用途不匹配的问题
1 parent de1eafe commit 9400ce1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

GameFrameX.Foundation.Orm.Entity/EntitySelectBase.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ public abstract class EntitySelectBase : EntityBase, ISelectFilter
2727
}
2828

2929
/// <summary>
30-
/// 框架实体基类
30+
/// 泛型框架实体基类(支持选择查询)
3131
/// </summary>
32-
public abstract class EntitySelectBase<TKey> where TKey : EntityBase, ISelectFilter
32+
/// <typeparam name="TKey">主键类型</typeparam>
33+
public abstract class EntitySelectBase<TKey> : EntityBase<TKey>, ISelectFilter
34+
where TKey : notnull
3335
{
3436
/// <summary>
3537
/// 名称

0 commit comments

Comments
 (0)