DigitalFactory/Admin.NET/Admin.NET.Application/Entity/CodeElementProp.cs

49 lines
1.4 KiB
C#

using Admin.NET.Core;
namespace Admin.NET.Application.Entity;
/// <summary>
/// 码元素内容
/// </summary>
[SugarTable("CodeElementProp","码元素内容")]
public class CodeElementProp : EntityBaseId
{
/// <summary>
/// 码元素Id
/// </summary>
[Required]
[SugarColumn(ColumnName = "CodeElementId", IsIdentity = false, ColumnDescription = "码元素Id", IsPrimaryKey = true)]
public long CodeElementId { get; set; }
/// <summary>
/// 长度
/// </summary>
[Required]
[SugarColumn(ColumnName = "Length", IsIdentity = false, ColumnDescription = "长度", IsPrimaryKey = true)]
public int Length { get; set; }
/// <summary>
/// 序号
/// </summary>
[SugarColumn(ColumnName = "Index", ColumnDescription = "序号")]
public int? Index { get; set; }
/// <summary>
/// 码元素值
/// </summary>
[SugarColumn(ColumnName = "CodeValue", ColumnDescription = "码元素值", Length = 32)]
public string? CodeValue { get; set; }
/// <summary>
/// 产码规则
/// </summary>
[SugarColumn(ColumnName = "CodeType", ColumnDescription = "产码规则", Length = 32)]
public string? CodeType { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 32)]
public string? Remark { get; set; }
}