#nullable disable using System.ComponentModel.DataAnnotations.Schema; namespace EC.Entity.CameraInfo { public partial class NvrInfo { [NotMapped] public int Number { get; set; } public long NvrId { get; set; } public string NvrName { get; set; } public string NvrType { get; set; } public string NvrIp { get; set; } public string UserName { get; set; } public string UserPwd { get; set; } public string NvrEnable { get; set; } [NotMapped] public bool NvrEnableBool { get => NvrEnable != null && NvrEnable.Equals("启用"); set => NvrEnable = value ? "启用" : "禁用"; } public string NvrAddr { get; set; } } }