Files
YuPu-OrpaonEMS/OrpaonEMS.Model/YuPuPeakValleyConfig.cs
2025-02-28 22:23:13 +08:00

71 lines
1.9 KiB
C#

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