Creating the Data Access Layer
The Data Access layer contains all the specialized code for interacting with a database. The Data Access layer consists of the single component in Listing 17.28. (A real-world application might contain dozens or even hundreds of components in its Data Access layer.)
Listing 17.28. DAL\SqlDataAccessLayer.cs
The
Get ASP.NET 4 Unleashed 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.