I am using IDataReader to get the data from db using stored procedure. ie something like this
using (IDataReader Reader = SqlHelper.ExecuteReader(ConnectionString, "StoredProc1", sqlParam))
{
while (Reader.Read())
{
}
}
In that case is it required to close the reader manually? my doubt is since we are using the Using directive, after execution whether it will close the reader automatically?.
Thanks,
Mahesh