Pros and cons and Usage
I have been preparing myself for an interview for the post of software developer in .net platform. For database related issues, I have to to a point about the connected ans disconnected classes of ADO .NET. I have read several articles but still not getting a perfect picture of those two terms. Hence, here I am, to the best place to get a concrete ans. Can any one explain me the pros and cons and the usage scenarios?
A DataReader uses a connected architecture since it keeps conneection open until all records are fetched.
A DataSet uses a disconnected architecture since it reads all records at once and closes connection afterwards, and the records are available after the connection is closed.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.