string sqlStr = "select * from city where proID=@proID";//查询语句
SqlDataAdapter da = new SqlDataAdapter() ;//创建适配器
using (SqlCommand cmd = new SqlCommand(sqlStr, conn))
{
cmd.Parameters.Add(new SqlParameter("proID", selectedModelID));//设置查询参数
da.SelectCommand = cmd;
......