SQL 打印SqlParameter
时间:2021-07-01 10:21:17
帮助过:43人阅读
static void PRINTSQL(
string sqlStr, List<SqlParameter>
Parameter)
{
for (
int i =
0; i < Parameter.Count; i++
)
{
sqlStr=sqlStr.Replace(
"@" + Parameter[i].ParameterName,
"‘"+ Parameter[i].Value.ToString()+
"‘");
}
Console.WriteLine(sqlStr);
}
SQL 打印SqlParameter
标签:ati bsp class i++ span private str count tsql