Chapter 9. Data Access and Storage

In this chapter, we will cover:

  • Mocking your data layer with NBuilder
  • Adding support for LINQ to SQL
  • Going old school with ADO.NET
  • XML documents as a data store

Introduction

In this chapter, we are going to focus more on the various flavours of data access and data storage, which are accessible to you when building an MVC application. To do this without taking too much time away from our focus on the data story, we will use a single MVC application across all recipes. To make our application flexible enough to easily swap our data access around, we will use StructureMap, the inversion of control pattern, and the repository pattern. At the end of this chapter, we should have one application with several different forms of data storage and methods of data access.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset