添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

@fate sta

[Serializable]

[SugarTable(IsCreateTableFiledSort = true)]

public partial class BaseObject

{

/// <summary>

///     主键

/// </summary>

[SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreUpdate = true, ColumnDescription = "主键", CreateTableFieldSort = -5)]

public long Id { get; set; }


/// <summary>

///     创建时间

/// </summary>

[SugarColumn(InsertServerTime = true, IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间", CreateTableFieldSort = -4)]

public DateTime Created { get; set; }


/// <summary>

///     更新时间

/// </summary>

[SugarColumn(UpdateServerTime = true, ColumnDescription = "更新时间", IsNullable = true, CreateTableFieldSort = -3)]

public DateTime? LastUpdate { get; set; }

}



[SugarTable(IsCreateTableFiledSort = true)]

public partial class Furnace : BaseObject

{


/// <summary>

///     炉台编号

/// </summary>

[SugarColumn(ColumnDescription = "编号", ColumnDataType = "varchar(50)")]

public string? Code { get; set; }


/// <summary>

///     炉台名称

/// </summary>

[SugarColumn(ColumnDescription = "名称", ColumnDataType = "varchar(50)", IsNullable = true)]

public string? Name { get; set; }

}

[SugarTable(IsCreateTableFiledSort = true)]

public partial class FurnaceStatus : BaseObject

{

/// <summary>

///     外键

/// </summary>

[SugarColumn(ColumnDescription = "Id")]

public long FurnaceId { get; set; }


/// <summary>

/// 编码

/// </summary>

[SugarColumn(ColumnDescription = "编码(同MES)", IsNullable = true)]

public string DeviceCode { get; set; }


/// <summary>

///     连接状态

/// </summary>

[SugarColumn(ColumnDescription = "连接状态")]

public bool IsConnected { get; set; }


/// <summary>

///     运行模式

///     0:未定义

///     1:维护

///     2:调试

///     3:手动

///     4:超纯手动

///     5:自动

/// </summary>

[SugarColumn(ColumnDescription = "运行模式")]

public RunMode RunMode { get; set; }

}

public class FurnaceModel

{

/// <summary>

/// Id

/// </summary>

public long? Id { get; set; }

/// <summary>

/// 编号

/// </summary>

public string Code { get; set; }

/// <summary>

/// 名称

/// </summary>

public string Name { get; set; }

}


public class FurnaceStatusModel

{

/// <summary>

///     炉台外键

/// </summary>

public FurnaceModel Furnace { get; set; }


/// <summary>

///     连接状态

/// </summary>

public bool IsConnected { get; set; }


/// <summary>

///     运行模式

///     0:未定义

///     1:维护

///     2:调试

///     3:手动

///     4:超纯手动

///     5:自动

/// </summary>

public RunMode RunMode { get; set; }

}