예제 #1
0
        private static void VerifySqlParamInfo(SqlVersion sqlVersion, SqlType sqlType, SqlParameterInfo expected)
        {
            var actual = sqlType.GetSqlParameterInfo(sqlVersion);

            Assert.AreEqual(expected.SqlDbType, actual.SqlDbType);
            Assert.AreEqual(expected.Size, actual.Size);
            Assert.AreEqual(expected.Precision, actual.Precision);
            Assert.AreEqual(expected.Scale, actual.Scale);
            Assert.AreEqual(expected.UdtTypeName, actual.UdtTypeName);
        }
예제 #2
0
 private bool CanEliminateCast(SqlType sourceSqlType, SqlType targetSqlType)
 {
     return(sourceSqlType.GetSqlParameterInfo(SqlVersion).SqlDbType == targetSqlType.GetSqlParameterInfo(SqlVersion).SqlDbType);
 }