コード例 #1
0
ファイル: SqlTinyIntTests.cs プロジェクト: camilohe/unQuery
        public void GetParameter()
        {
            SqlType type = new SqlTinyInt(5, ParameterDirection.Input);
            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.TinyInt, (byte)5);

            type = new SqlTinyInt(null, ParameterDirection.Input);
            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.TinyInt, DBNull.Value);
        }
コード例 #2
0
ファイル: SqlTinyIntTests.cs プロジェクト: ffMathy/unQuery
        public void GetParameter()
        {
            SqlType type = new SqlTinyInt(5, ParameterDirection.Input);

            TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.TinyInt, (byte)5);

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