using Furion.Extras.Admin.NET.Util.LowCode.Enum; using Furion.Extras.Admin.NET.Util.LowCode.Factor.Interface; using System.Reflection; namespace Furion.Extras.Admin.NET.Util.LowCode.Factor { public class DecimalFactor : IFactor { /// /// 对象类型 /// public FieldType FieldType { get { return FieldType.Decimal; } } /// /// 对象映射 /// public PropertyInfo Field { get; set; } /// /// 字段描述 /// public string Describe { get; set; } /// /// 字段名 /// public string FieldName { get; set; } /// /// 数据库类型 /// public string DbType { get { return $"DECIMAL({MaxLength},{DecimalLength})"; } } /// /// 数字长度 /// public int MaxLength { get; set; } /// /// 小数长度 /// public int DecimalLength { get; set; } } }