O'Reilly logo

Microsoft® .NET: Architecting Applications for the Enterprise by Dino Esposito and Andrea Saltarello

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Designing Your Own Data Access Layer

We started this chapter by saying that no matter how many abstraction layers you place in your model of the system, at some point you need to open a connection to some database. The layer where this happens is referred to as the DAL. After recognizing this core fact, though, we discussed the overall responsibilities of the DAL. Now it’s about time we delve deeper into the topic and say more about implementing your own DAL.

All in all, we don’t expect architects and developers to write a DAL from scratch on a regular basis. Many applications, even within an enterprise, run happily on typed DataSets and Active Record object models. As we said earlier, in these cases the DAL is available out of the box. You need ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required