Beispiel #1
0
        public static string GetAutoPropertyValue(AutoPropertyTypes type)
        {
            switch (type)
            {
            case AutoPropertyTypes.Date:
                return("CURDATE()");

            case AutoPropertyTypes.DateTime:
                return("NOW()");

            default:
                return("NOW()");
            }
        }
Beispiel #2
0
        private string GetAutoPropertyValue(AutoPropertyTypes type)
        {
            switch (type)
            {
            case AutoPropertyTypes.Date:
                return("CONVERT(DATE, GETDATE()) ");

            case AutoPropertyTypes.DateTime:
                return("GETDATE()");

            default:
                return("GETDATE()");
            }
        }
Beispiel #3
0
 public AutoProperty(AutoPropertyTypes type)
 {
     AutoPropertyType = type;
 }