Initial_commit_SecMPS_v2
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
|
||||
*如果数据库字段发生变化,请在代码生器重新生成此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
|
||||
{
|
||||
|
||||
public partial class warehouse_carvisitor
|
||||
{
|
||||
//此处配置字段(字段配置见此model的另一个partial),如果表中没有此字段请加上[SugarColumn(IsIgnore = true)]属性,否则会异常
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
|
||||
*如果数据库字段发生变化,请在代码生器重新生成此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_carvisitor",DBServer = "ServiceDbContext")]
|
||||
public partial class warehouse_carvisitor:ServiceEntity
|
||||
{
|
||||
/// <summary>
|
||||
///来访车辆ID
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
[Key]
|
||||
[Display(Name ="来访车辆ID")]
|
||||
[Column(TypeName="int")]
|
||||
[Editable(true)]
|
||||
[Required(AllowEmptyStrings=false)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///车牌号
|
||||
/// </summary>
|
||||
[Display(Name ="车牌号")]
|
||||
[MaxLength(255)]
|
||||
[Column(TypeName="nvarchar(255)")]
|
||||
[Editable(true)]
|
||||
public string CarNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///来访事由
|
||||
/// </summary>
|
||||
[Display(Name ="来访事由")]
|
||||
[MaxLength(255)]
|
||||
[Column(TypeName="nvarchar(255)")]
|
||||
[Editable(true)]
|
||||
public string VisitReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///进入时间
|
||||
/// </summary>
|
||||
[Display(Name ="进入时间")]
|
||||
[Column(TypeName="datetime")]
|
||||
[Editable(true)]
|
||||
public DateTime? EntryTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///离开时间
|
||||
/// </summary>
|
||||
[Display(Name ="离开时间")]
|
||||
[Column(TypeName="datetime")]
|
||||
[Editable(true)]
|
||||
public DateTime? ExitTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///照片URL
|
||||
/// </summary>
|
||||
[Display(Name ="照片URL")]
|
||||
[MaxLength(255)]
|
||||
[Column(TypeName="nvarchar(255)")]
|
||||
[Editable(true)]
|
||||
public string Photo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///允许进入区域
|
||||
/// </summary>
|
||||
[Display(Name ="允许进入区域")]
|
||||
[MaxLength(255)]
|
||||
[Column(TypeName="nvarchar(255)")]
|
||||
[Editable(true)]
|
||||
public string AllowArea { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user