109 lines
3.1 KiB
C#
109 lines
3.1 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_devicepoint",DetailTable = new Type[] { typeof(Warehouse_Device)},DetailTableCnName = "设备",DBServer = "ServiceDbContext")]
|
||
public partial class warehouse_devicepoint:ServiceEntity
|
||
{
|
||
/// <summary>
|
||
///点位ID
|
||
/// </summary>
|
||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||
[Key]
|
||
[Display(Name ="点位ID")]
|
||
[Column(TypeName="int")]
|
||
[Editable(true)]
|
||
[Required(AllowEmptyStrings=false)]
|
||
public int PointID { get; set; }
|
||
|
||
/// <summary>
|
||
///点位名称
|
||
/// </summary>
|
||
[Display(Name ="点位名称")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
[Required(AllowEmptyStrings=false)]
|
||
public string PointName { get; set; }
|
||
|
||
/// <summary>
|
||
///点位类型
|
||
/// </summary>
|
||
[Display(Name ="点位类型")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
[Required(AllowEmptyStrings=false)]
|
||
public string PointType { get; set; }
|
||
|
||
/// <summary>
|
||
///安装位置
|
||
/// </summary>
|
||
[Display(Name ="安装位置")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string PointPosition { get; set; }
|
||
|
||
/// <summary>
|
||
///点位GIS坐标x
|
||
/// </summary>
|
||
[Display(Name ="点位GIS坐标x")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string PointGIS_x { get; set; }
|
||
|
||
/// <summary>
|
||
///点位GIS坐标y
|
||
/// </summary>
|
||
[Display(Name ="点位GIS坐标y")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string PointGIS_y { get; set; }
|
||
|
||
/// <summary>
|
||
///所属区域ID
|
||
/// </summary>
|
||
[Display(Name ="所属区域ID")]
|
||
[Column(TypeName="int")]
|
||
[Editable(true)]
|
||
public int? RegionId { get; set; }
|
||
|
||
/// <summary>
|
||
///最大电力负载
|
||
/// </summary>
|
||
[Display(Name ="最大电力负载")]
|
||
[Column(TypeName="int")]
|
||
[Editable(true)]
|
||
public int? MaxPowerLoad { get; set; }
|
||
|
||
/// <summary>
|
||
///当前电力负载
|
||
/// </summary>
|
||
[Display(Name ="当前电力负载")]
|
||
[Column(TypeName="int")]
|
||
[Editable(true)]
|
||
public int? CurrentPowerLoad { get; set; }
|
||
|
||
[Display(Name ="设备")]
|
||
[ForeignKey("PointID")][Navigate(NavigateType.OneToMany,nameof(PointID),nameof(PointID))]
|
||
public List<Warehouse_Device> Warehouse_Device { get; set; }
|
||
|
||
|
||
|
||
}
|
||
} |