using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataEntity
{
///
/// 台面模板类
///
public class TabletopTemplate:IEntity
{
private string _tabletopid { get; set; } = "";
///
/// 模板Id
///
[SugarColumn(ColumnName = "tabletopid", IsPrimaryKey = true)]
[Description("模板Id")]
public string tabletopid
{
get { return _tabletopid; }
set
{
if (tabletopid == value) return;
_tabletopid = value;
OnPropertyChanged(nameof(tabletopid));
}
}
private string _tabletopname { get; set; } = "";
///
/// 模板名称
///
[SugarColumn(ColumnName = "tabletopname")]
[Description("模板名称")]
public string tabletopname
{
get { return _tabletopname; }
set
{
if (tabletopname == value) return;
_tabletopname = value;
OnPropertyChanged(nameof(tabletopname));
}
}
private int _tabletopstate { get; set; } = 1;
///
/// 模板状态:1:有效;0:已删除;
///
[SugarColumn(ColumnName = "tabletopstate")]
[Description("模板状态")]
public int tabletopstate
{
get { return _tabletopstate; }
set
{
if (tabletopstate == value) return;
_tabletopstate = value;
OnPropertyChanged(nameof(tabletopstate));
}
}
private int _usestate { get; set; } = 0;
///
/// 模板使用状态:1:使用中;0:未使用;
///
[SugarColumn(ColumnName = "usestate")]
[Description("模板使用状态")]
public int usestate
{
get { return _usestate; }
set
{
if (usestate == value) return;
_usestate = value;
OnPropertyChanged(nameof(usestate));
}
}
}
}