Hour 21

Quiz Answers

1: What is the purpose of adding additional layers to your application?
A1: The purpose of adding additional layers to your application is to improve the readability and manageability of your code.
2: Name the option you can use when calling the ExecuteReader() method of the Command object to make sure that the DataReader closes its connection to the database when it is done.
A2: The option is called CommandBehavior.CloseConnection.

Get Sams Teach Yourself ADO.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.