Files
2026-05-15 23:22:48 +08:00

47 lines
1.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
*如果数据库字段发生变化请在代码生器重新生成此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_Area",DetailTable = new Type[] { typeof(Warehouse_Device)},DetailTableCnName = "设备",DBServer = "ServiceDbContext")]
public partial class Warehouse_Area:ServiceEntity
{
/// <summary>
///区域编号
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
[Key]
[Display(Name ="区域编号")]
[Column(TypeName="uniqueidentifier")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public Guid AreaId { get; set; }
/// <summary>
///区域名称
/// </summary>
[Display(Name ="区域名称")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string AreaName { get; set; }
[Display(Name ="设备")]
[ForeignKey("AreaId")][Navigate(NavigateType.OneToMany,nameof(AreaId),nameof(AreaId))]
public List<Warehouse_Device> Warehouse_Device { get; set; }
}
}