예제 #1
0
        /// <summary>Gets the value for a parameter, surroounded with quotes if necessary</summary>
        public string GetEscapedValue(SQLParam key)
        {
            var val = values[key.Name];

            if (key.Type.OneOf("varchar", "nvarchar", "text", "ntext"))
                return "'" + val + "'";
            else
                return val;
        }
예제 #2
0
 public SQLParamTestValues(SQLParam param)
 {
     Parameter = param;
     TestType = SQLParamTestType.Unset;
 }