using FreeSql.DataAnnotations; using OrpaonEMS.Model.Enums; namespace OrpaonEMS.Model { /// /// 削峰填谷配置 /// [Table(Name = "PeakValleyConfig")] public class PeakValleyConfig { /// /// Id /// [Column(IsPrimary = true, IsIdentity = true)] public long Id { get; set; } /// /// 序号 /// public int Index { get; set; } /// /// 启用 /// public bool Enable { get; set; } /// /// 开始时间 /// [Column(Name = "StartTime", IsNullable = false, StringLength = 6)] public string StartTime { get; set; } /// /// 结束时间 /// [Column(Name = "EndTime", IsNullable = false, StringLength = 6)] public string EndTime { get; set; } /// /// 电价类型/尖峰电价 平段电价 峰段电价 谷段电价 /// [Column(MapType = typeof(string))] public ElePVEnum ElePV { get; set; } /// /// 名称(元) /// public double Price { get; set; } ///// ///// ///////////////////////////////////////////导航属性/////////////////////////////////////////////////////// ///// ////电价 //public long? ElePriceId { get; set; } //public ElePrice ElePrice { get; set; } ///// ///// 两个具体的配置 分别是报警和警告 ///// //public ICollection ToleranceConfigs { get; set; } } }