90 lines
2.6 KiB
C#
90 lines
2.6 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_plane",DetailTable = new Type[] { typeof(warehouse_planeflypoint)},DetailTableCnName = "航点",DBServer = "ServiceDbContext")]
|
||
public partial class warehouse_plane:ServiceEntity
|
||
{
|
||
/// <summary>
|
||
///无人机ID
|
||
/// </summary>
|
||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||
[Key]
|
||
[Display(Name ="无人机ID")]
|
||
[Column(TypeName="int")]
|
||
[Editable(true)]
|
||
[Required(AllowEmptyStrings=false)]
|
||
public int PlaneId { get; set; }
|
||
|
||
/// <summary>
|
||
///无人机名称
|
||
/// </summary>
|
||
[Display(Name ="无人机名称")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string PlaneName { get; set; }
|
||
|
||
/// <summary>
|
||
///无人机品牌
|
||
/// </summary>
|
||
[Display(Name ="无人机品牌")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string PlaneBrand { get; set; }
|
||
|
||
/// <summary>
|
||
///无人机型号
|
||
/// </summary>
|
||
[Display(Name ="无人机型号")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string PlaneModel { get; set; }
|
||
|
||
/// <summary>
|
||
///无人机状态
|
||
/// </summary>
|
||
[Display(Name ="无人机状态")]
|
||
[MaxLength(255)]
|
||
[Column(TypeName="nvarchar(255)")]
|
||
[Editable(true)]
|
||
public string PlaneStatus { get; set; }
|
||
|
||
/// <summary>
|
||
///巡航高度
|
||
/// </summary>
|
||
[Display(Name ="巡航高度")]
|
||
[Column(TypeName="int")]
|
||
[Editable(true)]
|
||
public int? FlyHight { get; set; }
|
||
|
||
/// <summary>
|
||
///电量(%)
|
||
/// </summary>
|
||
[Display(Name ="电量(%)")]
|
||
[Column(TypeName="int")]
|
||
[Editable(true)]
|
||
public int? Battery { get; set; }
|
||
|
||
[Display(Name ="航点")]
|
||
[ForeignKey("PlaneId")][Navigate(NavigateType.OneToMany,nameof(PlaneId),nameof(PlaneId))]
|
||
public List<warehouse_planeflypoint> warehouse_planeflypoint { get; set; }
|
||
|
||
|
||
|
||
}
|
||
} |