using (IDataReader reader = cmd.ExecuteReader()) { while (reader.Read()) { // get data from the reader } }
using (SqlDataReader reader = cmd.ExecuteReader()) { while (reader.Read()) { // get data from the reader } }
IDataReader
SqlDataReader
reader
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)