예제 #1
0
        public void GetParameter()
        {
            SqlType type = new SqlText("Test", ParameterDirection.Input);
            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Text, "Test", size: -1);

            type = new SqlText(null, ParameterDirection.Input);
            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Text, DBNull.Value, size: -1);
        }
예제 #2
0
        public void GetParameter()
        {
            SqlType type = new SqlText("Test", ParameterDirection.Input);

            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Text, "Test", size: -1);

            type = new SqlText(null, ParameterDirection.Input);
            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Text, DBNull.Value, size: -1);
        }