87 lines
2.4 KiB
C#
87 lines
2.4 KiB
C#
/*
|
||
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
|
||
*如果数据库字段发生变化,请在代码生器重新生成此Model
|
||
*/
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.ComponentModel.DataAnnotations;
|
||
using System.ComponentModel.DataAnnotations.Schema;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
using SqlSugar;
|
||
using VolPro.Entity.SystemModels;
|
||
|
||
namespace VolPro.Entity.DomainModels
|
||
{
|
||
[Entity(TableCnName = "钥匙管理",TableName = "warehouse_keys",DBServer = "ServiceDbContext")]
|
||
public partial class warehouse_keys:ServiceEntity
|
||
{
|
||
/// <summary>
|
||
///钥匙编号
|
||
/// </summary>
|
||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||
[Key]
|
||
[Display(Name ="钥匙编号")]
|
||
[Column(TypeName="int")]
|
||
[Editable(true)]
|
||
[Required(AllowEmptyStrings=false)]
|
||
public int id { get; set; }
|
||
|
||
/// <summary>
|
||
///所属钥匙柜编号
|
||
/// </summary>
|
||
[Display(Name ="所属钥匙柜编号")]
|
||
[Column(TypeName="int")]
|
||
[Editable(true)]
|
||
public int? DeviceId { get; set; }
|
||
|
||
/// <summary>
|
||
///钥匙名称
|
||
/// </summary>
|
||
[Display(Name ="钥匙名称")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
[Required(AllowEmptyStrings=false)]
|
||
public string KeyName { get; set; }
|
||
|
||
/// <summary>
|
||
///钥匙在柜位置
|
||
/// </summary>
|
||
[Display(Name ="钥匙在柜位置")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string KeyLocation { get; set; }
|
||
|
||
/// <summary>
|
||
///钥匙类型
|
||
/// </summary>
|
||
[Display(Name ="钥匙类型")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string KeyType { get; set; }
|
||
|
||
/// <summary>
|
||
///钥匙状态
|
||
/// </summary>
|
||
[Display(Name ="钥匙状态")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string KeyState { get; set; }
|
||
|
||
/// <summary>
|
||
///备注
|
||
/// </summary>
|
||
[Display(Name ="备注")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string Memo { get; set; }
|
||
|
||
|
||
}
|
||
} |