{
SqlDataReader dr=null;
try
{
openConnection();
comm.CommandText =sqlstr;
comm.CommandType =CommandType.Text ;
→ dr=comm.ExecuteReader(CommandBehavior.CloseConnection); ←.... 这句话怎么理解呢。??
}
catch
{
try
{
dr.Close();
closeConnection();
}
catch
{
}
}
return dr;
}
当 DataReader 处于使用中时,关联


添加到我的博客
加载中…