You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using Microsoft.EntityFrameworkCore ;
using System ;
using System.Collections.Generic ;
using System.ComponentModel.DataAnnotations.Schema ;
using System.ComponentModel.DataAnnotations ;
using PVDEMCS.Services.Repositories.Entities.BaseEntity ;
namespace PVDEMCS.Services.Repositories.Entities ;
/// <summary>
/// PLC控制器
/// </summary>
[Table("device_info")]
public partial class DeviceInfoEntity : CUDBaseEntity
{
/// <summary>
/// 控制器编号
/// </summary>
[Required]
[Column("device_code")]
[StringLength(32)]
public string DeviceCode { get ; set ; }
/// <summary>
/// 控制器名称
/// </summary>
[Required]
[Column("device_name")]
[StringLength(32)]
public string DeviceName { get ; set ; }
/// <summary>
/// 控制器状态,1: 启用, 0: 停用
/// </summary>
[Column("activated", TypeName = "bit(1)")]
public bool Activated { get ; set ; }
/// <summary>
/// 控制器协议:PLC,HTTP,Socket
/// </summary>
[Required]
[Column("protocol")]
[StringLength(32)]
public string Protocol { get ; set ; }
/// <summary>
/// 控制器主机地址
/// </summary>
[Required]
[Column("host")]
[StringLength(32)]
public string Host { get ; set ; }
/// <summary>
/// 控制器主机端口
/// </summary>
[Required]
[Column("port")]
public int Port { get ; set ; }
/// <summary>
/// 备注
/// </summary>
[Column("remark")]
[StringLength(255)]
public string Remark { get ; set ; }
}