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); }
private bool CanEliminateCast(SqlType sourceSqlType, SqlType targetSqlType) { return(sourceSqlType.GetSqlParameterInfo(SqlVersion).SqlDbType == targetSqlType.GetSqlParameterInfo(SqlVersion).SqlDbType); }