Пример #1
0
        public override DbTypeBase ToGenericType()
        {
            var res = new DbTypeDatetime();

            res.SubType     = DbDatetimeSubType.Datetime;
            res.HasTimeZone = TimeZone != TimeZoneType.None;
            res.SetSpecificAttribute("oracle", "subtype", "timestamp");
            res.SetSpecificAttribute("oracle", "timezone", TimeZone.ToString().ToLower());
            if (FractionalPrecision != null)
            {
                res.SetSpecificAttribute("oracle", "fractionalprecision", FractionalPrecision.ToString());
            }
            return(res);
        }
Пример #2
0
        public override DbTypeBase ToGenericType()
        {
            var res = new DbTypeDatetime();

            res.SubType = DbDatetimeSubType.Interval;
            res.SetSpecificAttribute("oracle", "subtype", "daytosecond");
            if (DayPrecision != null)
            {
                res.SetSpecificAttribute("oracle", "dayprecision", DayPrecision.ToString());
            }
            if (FractionalPrecision != null)
            {
                res.SetSpecificAttribute("oracle", "fractionalprecision", FractionalPrecision.ToString());
            }
            return(res);
        }