using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.DB.Models; namespace WIDESEA_Model.Models { /// /// BDC缓存配置 /// [SugarTable(nameof(Dt_BDCConfiguration), "BDC配置")] public class Dt_BDCConfiguration : BaseEntity { [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } //[SugarColumn(ColumnName = "Name")] //public int Con_Id { get; set; } /// /// 配置名称 /// [SugarColumn(ColumnName = "Name")] public string Name { get; set; } = "默认配置"; /// /// 白车身最大缓存数 /// [SugarColumn(ColumnName = "MaxWhiteBodyCache")] [Range(0, int.MaxValue)] public int MaxWhiteBodyCache { get; set; } = 100; /// /// 彩车身最大缓存数 /// [SugarColumn(ColumnName = "MaxPaintedBodyCache")] [Range(0, int.MaxValue)] public int MaxPaintedBodyCache { get; set; } = 100; /// /// 电池壳最大缓存数 /// [SugarColumn(ColumnName = "MaxBatteryCaseCache")] [Range(0, int.MaxValue)] public int MaxBatteryCaseCache { get; set; } = 50; /// /// 空滑橇最大缓存数 /// [SugarColumn(ColumnName = "MaxEmptySledCache")] [Range(0, int.MaxValue)] public int MaxEmptySledCache { get; set; } = 30; /// /// 是否启用 /// [SugarColumn(ColumnName = "IsActive")] public int IsActive { get; set; } = 1; } }