S
Scott Johnson
I thought interfaces have no implementation so how can I create a DataReader
from an IDataReader Interface and use it similarly to how I would use an
OleDBDataReader? How is it that the block of code below actually functions?
Does IDataReader have an implementation or not? Thanks in advance.
System.Data.IDataReader DR= db.ExecuteReader(dbCommandWrapper);
while(DR.Read())
{
Console.WriteLine(DR.GetValue(0).ToString() );
}
from an IDataReader Interface and use it similarly to how I would use an
OleDBDataReader? How is it that the block of code below actually functions?
Does IDataReader have an implementation or not? Thanks in advance.
System.Data.IDataReader DR= db.ExecuteReader(dbCommandWrapper);
while(DR.Read())
{
Console.WriteLine(DR.GetValue(0).ToString() );
}