现在的位置: 首页 > 综合 > 正文

Disponse()

2012年04月04日 ⁄ 综合 ⁄ 共 241字 ⁄ 字号 评论关闭
问:using( SqlCommand sqlCommand = new SqlCommand(sqlCmd, sqlConnection))
{
        
}
后 还能取到sqlCommand的CommandText属性吗?
同样的using(SqlDataAdapter dataAdapter = new SqlDataAdapter(sqlCmd, sqlConnection))
{

}
后还能取到dataAdapter的SelectCommand.CommandText吗?
请解释哈为什么?谢谢···

抱歉!评论已关闭.