/* *代码由框架生成,任何更改都可能导致被代码生成器覆盖 *如果数据库字段发生变化,请在代码生器重新生成此Model */ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using SqlSugar; using VolPro.Entity.SystemModels; namespace VolPro.Entity.DomainModels { [Entity(TableCnName = "设备管理_视频通道",TableName = "video_channel",DetailTable = new Type[] { typeof(video_record)},DetailTableCnName = "录像记录",DBServer = "ServiceDbContext")] public partial class video_channel:ServiceEntity { /// ///通道记录ID /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] [Key] [Display(Name ="通道记录ID")] [Column(TypeName="int")] [Editable(true)] [Required(AllowEmptyStrings=false)] public int ChannelId { get; set; } /// ///Owl系统通道ID /// [SugarColumn(IsPrimaryKey = true)] [Key] [Display(Name ="Owl系统通道ID")] [MaxLength(64)] [Column(TypeName="nvarchar(64)")] [Editable(true)] [Required(AllowEmptyStrings=false)] public string OwlChannelId { get; set; } /// ///关联Base_Device设备ID /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] [Key] [Display(Name ="关联Base_Device设备ID")] [Column(TypeName="int")] [Editable(true)] [Required(AllowEmptyStrings=false)] public int DeviceId { get; set; } /// ///Owl流应用名 /// [Display(Name ="Owl流应用名")] [MaxLength(50)] [Column(TypeName="nvarchar(50)")] [Editable(true)] public string OwlStreamApp { get; set; } /// ///Owl流名称 /// [Display(Name ="Owl流名称")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string OwlStreamName { get; set; } /// ///是否支持云台 /// [Display(Name ="是否支持云台")] [Column(TypeName="tinyint")] [Editable(true)] public byte? HasPtz { get; set; } /// ///是否支持录像 /// [Display(Name ="是否支持录像")] [Column(TypeName="tinyint")] [Editable(true)] public byte? HasRecording { get; set; } /// ///录像模式 /// [Display(Name ="录像模式")] [Column(TypeName="int")] [Editable(true)] public int? RecordMode { get; set; } /// ///快照地址 /// [Display(Name ="快照地址")] [MaxLength(500)] [Column(TypeName="nvarchar(500)")] [Editable(true)] public string SnapshotUrl { get; set; } /// ///创建时间 /// [Display(Name ="创建时间")] [Column(TypeName="datetime")] [Editable(true)] public DateTime? CreateDate { get; set; } [Display(Name ="录像记录")] [ForeignKey("ChannelId")][Navigate(NavigateType.OneToMany,nameof(ChannelId),nameof(ChannelId))] public List video_record { get; set; } } }