mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix DbCurrent
This commit is contained in:
@@ -42,7 +42,7 @@ internal sealed class DbCurrent<TEntity, TMessage>
|
||||
set
|
||||
{
|
||||
// prevent useless sets
|
||||
if (current == value)
|
||||
if (current?.InnerId == value?.InnerId)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,11 @@ namespace Snap.Hutao.Core.Database;
|
||||
[HighQuality]
|
||||
internal interface ISelectable
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据库内部Id
|
||||
/// </summary>
|
||||
Guid InnerId { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置当前项的选中状态
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user