iotgateway/WalkingTec.Mvvm/WalkingTec.Mvvm.Core/Models/PersistPoco.cs

22 lines
536 B
C#
Raw Normal View History

2021-12-14 06:10:44 +00:00
using System.ComponentModel.DataAnnotations;
namespace WalkingTec.Mvvm.Core
{
public interface IPersistPoco
{
bool IsValid { get; set; }
}
/// <summary>
/// 所有持久化model的基类所有的不应被物理删除的model都应该继承这个类
/// </summary>
public abstract class PersistPoco : BasePoco, IPersistPoco
{
/// <summary>
/// IsValid
/// </summary>
[Display(Name = "_Admin.IsValid")]
public bool IsValid { get; set; } = true;
}
}