using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; using NPoco; using POSV.Bean; namespace POSV.Entity { [Serializable] [JsonObject(MemberSerialization.OptIn)] [TableName("pos_kds_plan")] [PrimaryKey(new string[] { "id" }, AutoIncrement = false)] public class KdsPlan : BaseEntity,IEquatable { public KdsPlan() { } /// /// 租户ID /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId { get; set; } /// /// 编号 /// [JsonProperty(PropertyName = "no")] [Column("no")] public string No { get; set; } /// /// 名称 /// [JsonProperty(PropertyName = "name")] [Column("name")] public string Name { get; set; } /// /// 备注 /// [JsonProperty(PropertyName = "description")] [Column("memo")] public string Memo { get; set; } /// /// 厨显方案key /// [JsonProperty(PropertyName = "keys")] [Column("keys")] public string Keys { get; set; } /// /// 扩展字段1 /// [JsonProperty(PropertyName = "ext1")] [Column("ext1")] public string Ext1 { get; set; } /// /// 扩展字段2 /// [JsonProperty(PropertyName = "ext2")] [Column("ext2")] public string Ext2 { get; set; } /// /// 扩展字段3 /// [JsonProperty(PropertyName = "ext3")] [Column("ext3")] public string Ext3 { get; set; } public bool Equals(KdsPlan other) { if (other == null) { return false; } return this.Id == other.Id; } public override string ToString() { return this.Name; } } }