Files
ThingsGateway/framework/ThingsGateway.Application/Entity/UploadDevice.cs
2023-09-04 17:09:38 +08:00

74 lines
2.9 KiB
C#
Raw 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.

#region copyright
//------------------------------------------------------------------------------
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
// 此代码版权除特别声明外的代码归作者本人Diego所有
// 源代码使用协议遵循本仓库的开源协议及附加协议
// Gitee源代码仓库https://gitee.com/diego2098/ThingsGateway
// Github源代码仓库https://github.com/kimdiego2098/ThingsGateway
// 使用文档https://diego2098.gitee.io/thingsgateway-docs/
// QQ群605534569
//------------------------------------------------------------------------------
#endregion
namespace ThingsGateway.Application;
/// <summary>
/// 上传设备表
/// </summary>
[SugarTable("uploadDevice", TableDescription = "上传设备表")]
[Tenant(ThingsGatewayConst.DB_ThingsGateway)]
public class UploadDevice : BaseEntity
{
/// <summary>
/// 名称
/// </summary>
[SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 200)]
[DataTable(Order = 3, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
public virtual string Name { get; set; }
/// <summary>
/// 描述
/// </summary>
[SugarColumn(ColumnName = "Description", ColumnDescription = "描述", Length = 200, IsNullable = true)]
[DataTable(Order = 3, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
public string Description { get; set; }
/// <summary>
/// 插件Id
/// </summary>
[SugarColumn(ColumnName = "PluginId", ColumnDescription = "插件")]
[DataTable(Order = 3, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
[IgnoreExcel]
public virtual long PluginId { get; set; }
/// <summary>
/// 设备使能
/// </summary>
[SugarColumn(ColumnName = "Enable", ColumnDescription = "设备使能")]
[DataTable(Order = 3, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
public virtual bool Enable { get; set; }
/// <summary>
/// 设备组
/// </summary>
[SugarColumn(ColumnName = "DeviceGroup", ColumnDescription = "设备组", IsNullable = true)]
[DataTable(Order = 3, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
public virtual string DeviceGroup { get; set; }
/// <summary>
/// 输出日志
/// </summary>
[SugarColumn(ColumnName = "IsLogOut", ColumnDescription = "输出日志")]
[DataTable(Order = 3, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")]
public virtual bool IsLogOut { get; set; }
/// <summary>
/// 设备属性Json
/// </summary>
[SugarColumn(IsJson = true, ColumnName = "DevicePropertys", ColumnDataType = StaticConfig.CodeFirst_BigString, ColumnDescription = "设备属性Json", IsNullable = true)]
[IgnoreExcel]
public List<DependencyProperty> DevicePropertys { get; set; }
}