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
|
set
|
||||||
{
|
{
|
||||||
// prevent useless sets
|
// prevent useless sets
|
||||||
if (current == value)
|
if (current?.InnerId == value?.InnerId)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,11 @@ namespace Snap.Hutao.Core.Database;
|
|||||||
[HighQuality]
|
[HighQuality]
|
||||||
internal interface ISelectable
|
internal interface ISelectable
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 数据库内部Id
|
||||||
|
/// </summary>
|
||||||
|
Guid InnerId { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置当前项的选中状态
|
/// 获取或设置当前项的选中状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user