z8018
2 天以前 d8dc91f9c1fece5711e38edd1b1274cb9e579015
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using WIDESEA_Core.DB.Models;
 
namespace WIDESEA_Model.Models
{
    /// <summary>
    /// 产品信息表
    /// </summary>
    [SugarTable(nameof(Dt_Products), TableDescription = "产品信息表")]
    public class Dt_Products : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int Id { get; set; }
 
        /// <summary>
        /// 产品名称
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 100, ColumnDescription = "产品名称")]
        public string ProductName { get; set; } = null!;
 
        /// <summary>
        /// 产品描述
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "产品描述")]
        public string? ProductDescription { get; set; }
 
        /// <summary>
        /// 分类(桌面/移动/中间件等)
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "分类(桌面/移动/中间件等)")]
        public string ProductCategory { get; set; } = null!;
 
        /// <summary>
        /// 是否启用
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "是否启用")]
        public bool IsEnable { get; set; }
    }
}