ke_junjie
2025-06-04 84620534eb627e95811b971a4b552b6a177829bf
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
using Furion.Extras.iWare.Wms.Util.LowCode.Enum;
using Furion.Extras.iWare.Wms.Util.LowCode.Factor.Interface;
using System.Reflection;
 
namespace Furion.Extras.iWare.Wms.Util.LowCode.Factor
{
    public class DecimalFactor : IFactor
    {
        /// <summary>
        /// 对象类型
        /// </summary>
        public FieldType FieldType
        { get { return FieldType.Decimal; } }
 
        /// <summary>
        /// 对象映射
        /// </summary>
        public PropertyInfo Field { get; set; }
 
        /// <summary>
        /// 字段描述
        /// </summary>
        public string Describe { get; set; }
 
        /// <summary>
        /// 字段名
        /// </summary>
        public string FieldName { get; set; }
 
        /// <summary>
        /// 数据库类型
        /// </summary>
        public string DbType
        { get { return $"DECIMAL({MaxLength},{DecimalLength})"; } }
 
        /// <summary>
        /// 数字长度
        /// </summary>
        public int MaxLength { get; set; }
 
        /// <summary>
        /// 小数长度
        /// </summary>
        public int DecimalLength { get; set; }
    }
}