iotgateway/WalkingTec.Mvvm/WalkingTec.Mvvm.Core/Models/PersistPoco.cs
2021-12-14 14:10:44 +08:00

22 lines
536 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}
}