示例#1
0
        public void AddParameter()
        {
            var someGuidType = new SomeIntType(new[] { 21 });
            var command      = new SqlCommand("SELECT * FROM dbo.Orders WHERE ID = @Id;");

            someGuidType.AddParameter(command, "Id");
            Assert.Single(command.Parameters);
        }
示例#2
0
        public void GetParameter()
        {
            var someGuidType = new SomeIntType(new[] { 21 });
            var parameter    = someGuidType.GetParameter("Id");

            Assert.NotNull(parameter.Value);
            Assert.Equal("IntegerIdList", parameter.TypeName);
            Assert.Equal("Id", parameter.ParameterName);
        }