陈勇
2026-03-17 40ef2cb3dd897dfc74d9576d0973517b24cc9367
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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
{
    /// <summary>
    /// BDC缓存配置
    /// </summary>
    [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; }
 
        /// <summary>
        /// 配置名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string Name { get; set; } = "默认配置";
 
        /// <summary>
        /// 白车身最大缓存数
        /// </summary>
        [SugarColumn(ColumnName = "MaxWhiteBodyCache")]
        [Range(0, int.MaxValue)]
 
        public int MaxWhiteBodyCache { get; set; } = 100;
 
        /// <summary>
        /// 彩车身最大缓存数
        /// </summary>
        [SugarColumn(ColumnName = "MaxPaintedBodyCache")]
        [Range(0, int.MaxValue)]
        public int MaxPaintedBodyCache { get; set; } = 100;
 
        /// <summary>
        /// 电池壳最大缓存数
        /// </summary>
        [SugarColumn(ColumnName = "MaxBatteryCaseCache")]
        [Range(0, int.MaxValue)]
        public int MaxBatteryCaseCache { get; set; } = 50;
 
        /// <summary>
        /// 空滑橇最大缓存数
        /// </summary>
        [SugarColumn(ColumnName = "MaxEmptySledCache")]
        [Range(0, int.MaxValue)]
        public int MaxEmptySledCache { get; set; } = 30;
 
        /// <summary>
        /// 是否启用
        /// </summary>
        [SugarColumn(ColumnName = "IsActive")]
        public int IsActive { get; set; } = 1;
    }
}