Summary

When you design your data services tier, it's important to take advantage of the features of the .NET Framework to create flexible and effective classes. Today, you learned how you can use features such as implementation inheritance, overloaded methods, interface-based programming, and serialization in your data access classes.

However, even if you follow the recommendations and techniques discussed today, you'll still end up writing quite a bit of repetitive ADO.NET code in your data access classes. Tomorrow, you'll learn how to take the abstractions discussed today one step further and implement a data factory class.

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.