51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using System.Text.Json.Serialization;
|
|
using PlcTool.Siemens.PLCAttribute;
|
|
using SqlSugar;
|
|
|
|
namespace WcsMain.DataBase.TableEntity;
|
|
|
|
/// <summary>
|
|
/// DB地址实体类 tbl_app_db
|
|
/// </summary>
|
|
[SugarTable("tbl_app_db")]
|
|
public class AppDB
|
|
{
|
|
/// <summary>
|
|
/// PLC编号
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "plc_id")]
|
|
[PlcId]
|
|
[JsonPropertyName("plcId")]
|
|
public int? PlcId { get; set; }
|
|
/// <summary>
|
|
/// 地址名称
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true, ColumnName = "db_name")]
|
|
[PlcDBName]
|
|
[JsonPropertyName("dbName")]
|
|
public string? DBName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 地址值
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "db_address")]
|
|
[PlcDBAddress]
|
|
[JsonPropertyName("dbAddress")]
|
|
public string? DBAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否系统值
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "is_system")]
|
|
[JsonPropertyName("isSystem")]
|
|
public int? IsSystem { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "remark")]
|
|
[JsonPropertyName("remark")]
|
|
public string? Remark { get; set; }
|
|
|
|
|
|
} |