Пример #1
0
        public void GetParameter()
        {
            SqlType type = new SqlMoney(5.27m, ParameterDirection.Input);
            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Money, 5.27m);

            type = new SqlMoney(null, ParameterDirection.Input);
            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Money, DBNull.Value);
        }
Пример #2
0
        public void GetParameter()
        {
            SqlType type = new SqlMoney(5.27m, ParameterDirection.Input);

            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Money, 5.27m);

            type = new SqlMoney(null, ParameterDirection.Input);
            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Money, DBNull.Value);
        }