We all know that DataReaders are faster than DataTables because DataReader is used to create a DataTable.
So I already have a DataTable .... Why would I want to convert it to a DataReader?
OK, I am creating an internal interface named IDataProvider. This interface has to be implemented locally and as a webserver. One way of interface would be "gate data" which takes some criteria and gives some data.
Since a dataarider is the fastest data retrieval system, I would like to use it as the result type of "GetData" method, although we also know that DataReader is not a syllable and therefore a web Can not transfer to the web through the service ...
In the case of the web, I will request the local proxy class as the data dataable and then locally present it as a DataReader
In this way, the local application (or care) does not know if it is accessing data locally or remotely.
While doing this I need to know ... How do I wrap a data drawer around the already existing datatellite?
Update: My business logic is not going to be in webservice because of the website Switch to a Dataproider that uses Professional logic will therefore be conducted in the Client app.
FWIW I am using Net 3.5 SP1
Just call CreateDataReader on your datatable
Comments
Post a Comment