43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using Dlhis.Entity.Basic.Enums;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Entity.Basic.Entity;
|
|
|
|
/// <summary>
|
|
/// 节假日
|
|
/// </summary>
|
|
[SugarTable(TableName = "Holidays")]
|
|
public class HolidayEntity : SugarBaseEntity
|
|
{
|
|
/// <summary>
|
|
/// 年份
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "年份")]
|
|
public int Year { get; set; }
|
|
|
|
/// <summary>
|
|
/// 节假日类型
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "节假日类型", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public HolidayEnumType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "名称")]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 开始日期
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "开始日期")]
|
|
public DateOnly Start { get; set; }
|
|
|
|
/// <summary>
|
|
/// 结束日期
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "结束日期")]
|
|
public DateOnly End { get; set; }
|
|
} |