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

90 lines
2.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_WenDu", DBServer = "ServiceDbContext")]
[SplitTable(SplitType.Month)]
[SugarTable("Warehouse_WenDu_{year}{month}{day}")]
public partial class Warehouse_WenDu : ServiceEntity
{
/// <summary>
///变量Id
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[Key]
[Display(Name = "变量Id")]
[Column(TypeName = "bigint")]
[Editable(true)]
[Required(AllowEmptyStrings = false)]
public long Id { get; set; }
/// <summary>
///变量名称
/// </summary>
[Display(Name = "变量名称")]
[MaxLength(255)]
[Column(TypeName = "varchar(255)")]
[Editable(true)]
public string Name { get; set; }
/// <summary>
///设备名称
/// </summary>
[Display(Name = "设备名称")]
[MaxLength(255)]
[Column(TypeName = "varchar(255)")]
[Editable(true)]
public string DeviceName { get; set; }
/// <summary>
///实时值
/// </summary>
[Display(Name = "实时值")]
[MaxLength(255)]
[Column(TypeName = "varchar(255)")]
[Editable(true)]
public string Value { get; set; }
/// <summary>
///是否在线
/// </summary>
[Display(Name = "是否在线")]
[Column(TypeName = "bit")]
[Editable(true)]
[Required(AllowEmptyStrings = false)]
public bool IsOnline { get; set; }
/// <summary>
///采集时间
/// </summary>
[SplitField]
[Display(Name = "采集时间")]
[Column(TypeName = "datetime")]
[Editable(true)]
[Required(AllowEmptyStrings = false)]
public DateTime CollectTime { get; set; }
/// <summary>
///
/// </summary>
[Display(Name = "CreateTime")]
[Column(TypeName = "datetime")]
[Editable(true)]
[Required(AllowEmptyStrings = false)]
public DateTime CreateTime { get; set; }
}
}