Sunday, March 11, 2012

Is there a difference between Datareader and SqlDatareader or are they the same

DataReader is abstract and refers to objects that implement IDataReader

SqlDataReader is the actual object you create.


so we can t create a DataReader object, right


Nope. DbDataReader (what I think you are referring to since there is no DataReader class), is Abstract so you can't create a object from it.
thank you

No comments:

Post a Comment