You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using NPoco;
namespace POSV.Entity
{
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
[TableName("pos_carder")]
[PrimaryKey(new string[] { "id" } , AutoIncrement = false)]
public class Carder : BaseEntity
{
public Carder()
{
}
/**
* 租户ID
*/
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
/**
* 名称
*/
[JsonProperty(PropertyName = "name")]
[Column("name")]
public string Name { get; set; }
/**
* 支持的端口
*/
[JsonProperty(PropertyName = "port")]
[Column("port")]
public string Port { get; set; }
/**
* 串口波特率
*/
[JsonProperty(PropertyName = "baudRate")]
[Column("baudRate")]
public int BaudRate { get; set; }
/**
* 类型
*/
[JsonProperty(PropertyName = "cardType")]
[Column("cardType")]
public string CardType { get; set; }
/**
* 是否顾客自己添加
*/
[JsonProperty(PropertyName = "userDefined")]
[Column("userDefined")]
public int UserDefined { get; set; }
/**
* 备注说明
*/
[JsonProperty(PropertyName = "memo")]
[Column("memo")]
public string Memo { get; set; }
/// <summary>
/// 扩展字段1
/// </summary>
[JsonProperty(PropertyName = "ext1")]
[Column("ext1")]
public string Ext1 { get; set; }
/// <summary>
/// 扩展字段2
/// </summary>
[JsonProperty(PropertyName = "ext2")]
[Column("ext2")]
public string Ext2 { get; set; }
/// <summary>
/// 扩展字段3
/// </summary>
[JsonProperty(PropertyName = "ext3")]
[Column("ext3")]
public string Ext3 { get; set; }
public override string ToString()
{
return this.Name;
}
}
}