#nullable disable using EC.Entity.PublicModel; using System.ComponentModel.DataAnnotations.Schema; namespace EC.Entity.CameraInfo { public partial class IpcInfo : BaseEntity { [NotMapped] public int Number { get; set; } public long IpcId { get; set; } public string IpcName { get; set; } public string NvrName { get; set; } public string IpcType { get; set; } public string IpcIp { get; set; } public string OnvifAddr { get; set; } public string MediaAddr { get; set; } public string PtzAddr { get; set; } public string RtspMain { get; set; } public string RtspSub { get; set; } public string IpcPosition { get; set; } public string IpcImage { get; set; } public long? IpcX { get; set; } public long? IpcY { get; set; } public string UserName { get; set; } public string UserPwd { get; set; } public string IpcEnable { get; set; } [NotMapped] public bool IpcEnableBool { get => IpcEnable != null && IpcEnable.Equals("启用"); set => IpcEnable = value ? "启用" : "禁用"; } public string IpcAddr { get; set; } } }