baotian
2024-06-04 b959135a1139fb66646523d92e5bd20c5910f283
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
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 TextFactor : IFactor
    {
        /// <summary>
        /// 对象类型
        /// </summary>
        public FieldType FieldType
        { get { return FieldType.String; } }
 
        /// <summary>
        /// 字段描述
        /// </summary>
        public string Describe { get; set; }
 
        /// <summary>
        /// 字段名
        /// </summary>
        public string FieldName { get; set; }
 
        /// <summary>
        /// 对象映射
        /// </summary>
        public PropertyInfo Field { get; set; }
 
        /// <summary>
        /// 数据库类型
        /// </summary>
        public string DbType
        { get { return $"NVARCHAR({MaxLength})"; } }
 
        /// <summary>
        /// 字段最大长度
        /// </summary>
        public int MaxLength { get; set; }
    }
}