改成如下方式即可
string sql = "Select * from Users Where Name like @Name"; CustParameter [] param = new CustParameter[]{new CustParameter("@Name", "%" + Name + "%") };