payne
2024-04-25 2306e1ff0c47d95864986f7e27c9d53a2d65ab59
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
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 DateFactor : IFactor
    {
        public PropertyInfo Field { get; set; }
        public string Describe { get; set; }
        public string FieldName { get; set; }
 
        public FieldType FieldType
        { get { return FieldType.Date; } }
 
        public string DbType
        {
            get
            {
                if (IsDateTime) return "DATETIME";
                return "DATE";
            }
        }
 
        public bool IsDateTime { get; set; } = true;
    }
}