Summary

By creating an internal data factory, you can not only reduce the amount of code you have to write in your data access classes, but also allow them to be provider and database independent, while maintaining performance and even increasing it with the use of caching. You can use the approach discussed today as a template for building your own data factory, or download the code from the Sams Web site.

Before you design your data access classes, you need to think about how they'll be used. Nowhere is this more important than in the implementation of XML Web Services. Tomorrow, you'll learn how ADO.NET can be used effectively in the XML Web Services you design.

Get Sams Teach Yourself ADO.NET in 21 Days 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.