예제 #1
0
        public static void SerializeExplicit()
        {
            var type   = new SqlDayToSecondType();
            var result = SqlTypeUtil.Serialize(type);

            Assert.Equal(type, result);
        }
예제 #2
0
        public static void SerializeExplicit(int value)
        {
            var type   = PrimitiveTypes.Array(value);
            var result = SqlTypeUtil.Serialize(type);

            Assert.Equal(type, result);
        }
예제 #3
0
        public static void SerializeExplicit(SqlTypeCode typeCode, int precision, int scale)
        {
            var type   = new SqlNumericType(typeCode, precision, scale);
            var result = SqlTypeUtil.Serialize(type);

            Assert.Equal(type, result);
        }
예제 #4
0
        public static void SerializeExplicit(SqlTypeCode typeCode)
        {
            var type   = new SqlDateTimeType(typeCode);
            var result = SqlTypeUtil.Serialize(type);

            Assert.Equal(type, result);
        }
        public static void SerializeExplicit()
        {
            var type = PrimitiveTypes.YearToMonth();

            var result = SqlTypeUtil.Serialize(type);

            Assert.Equal(type, result);
        }
예제 #6
0
        public void SerializeExplicit(SqlTypeCode typeCode)
        {
            var type = new SqlBooleanType(typeCode);

            var result = SqlTypeUtil.Serialize(type);

            Assert.Equal(type, result);
        }
        public static void SerializeExplicit(SqlTypeCode typeCode, int maxSize, string locale)
        {
            var culture = String.IsNullOrEmpty(locale) ? null : new CultureInfo(locale);
            var type    = new SqlCharacterType(typeCode, maxSize, culture);

            var result = SqlTypeUtil.Serialize(type);

            Assert.Equal(type, result);
        }