YearToMonth() public static method

public static YearToMonth ( ) : IntervalType
return IntervalType
コード例 #1
0
        public static void GetString(string input, string expected)
        {
            var type = PrimitiveTypes.YearToMonth();
            var ytm  = SqlYearToMonth.Parse(input);
            var s    = type.ToSqlString(ytm);

            Assert.Equal(expected, s);
        }
コード例 #2
0
        public static void Serialize()
        {
            var type = PrimitiveTypes.YearToMonth();

            var result = BinarySerializeUtil.Serialize(type);

            Assert.Equal(type, result);
        }