Initial_commit_SecMPS_v2
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
|
||||
*如果数据库字段发生变化,请在代码生器重新生成此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 = "ReadDBTableName",DBServer = "ServiceDbContext")]
|
||||
public partial class ReadDBTableName: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>
|
||||
[Display(Name ="采集时间")]
|
||||
[Column(TypeName="datetime")]
|
||||
[Editable(true)]
|
||||
[Required(AllowEmptyStrings=false)]
|
||||
public DateTime CollectTime { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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 ReadDBTableName
|
||||
{
|
||||
//此处配置字段(字段配置见此model的另一个partial),如果表中没有此字段请加上[SugarColumn(IsIgnore = true)]属性,否则会异常
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user