以下のようなコードがあります。このストアド プロシージャ 'get2Rows' は 2 行を返します。最初の行を取得して列の値を取得し、次に 2 番目の行を取得して列の値を取得します。どのように繰り返す必要がありますか?
using (System.Data.Common.DbCommand dbCommand = DataAccess.Instance().Database.GetStoredProcCommand("get2Rows"))
{
using (IDataReader reader = DataAccess.Instance().Database.ExecuteReader(dbCommand))
{
while (reader.Read())//here i want to get the 1st row
{
//here i want to get the columns of the 1st row....
}
};
}