Language

ASP.NET Data Access Content Map

This topic provides links to documentation resources about how to access data in ASP.NET web applications, primarily by using the Entity Framework and SQL Server.

If you know a great blog post, stackoverflow thread, or any other link that would be useful, send us an email with the link.

We are seeking feedback on some experimental new approaches to presenting annotated lists of recommended resources. Some of them have a narrower scope than this content map; for a deployment example, see How to deploy an ASP.NET web application to a Windows Azure Web Site using Visual Studio. Another example is How to secure an ASP.NET MVC app .

The topic contains the following sections:

Getting Started with Data Access in ASP.NET

Using the Entity Framework

Using Entity Framework Code First

See also Books about the Entity Framework and Additional Entity Framework Resources later in this topic.

Using Entity Framework Code First Migrations

Using Entity Framework Database First or Model First (the EF Designer)

For current resources on using the Entity Framework designer, see the MSDN Data Developer Center. See also the Books about the Entity Framework and Other Entity Framework resources sections later in this topic.

The following resources are older. They are useful if you want to use version 4.0 of the Entity Framework, and you want to use a data source control for data binding in a Web Forms application.

Loading Related data in Entity Framework (Lazy Loading, Eager Loading, and Explicit Loading)

Optimizing Entity Framework performance

Handling Concurrency in an Entity Framework Application

Books about the Entity Framework

Both of these books are up-to-date with the most current recommended techniques, and they provide a much more comprehensive yet easy-to-follow introduction to the Entity Framework than anything available on the Internet. Another book, Programming Entity Framework by Julie Lerman, is larger and more comprehensive but it is older and many of the techniques it covers are no longer the recommended way to use the Entity Framework. See also the list of books recommended by the Entity Framework team at Data Developer Center - Books on the MSDN site.

Other Entity Framework Resources

  • Entity Framework (ADO.NET) team blog (One of the best resources for the most current information and announcements of new enhancements.)
  • Julie Lerman's blog (Julie Lerman is the author and co-author of several Entity Framework books and courses, and her blog is another good source for current information and announcements.)
  • MSDN Magazine (See the Data Points column, which is frequently about topics related to the Entity Framework.)

The following blogs are by members of the Entity Framework team at Microsoft. They are not as frequently updated as the team blog.

Data Binding in ASP.NET Web Forms Applications

Using Web Forms Model Binding

Using Web Forms Data Source Controls

Using Web Forms Data-Bound Controls and Data-Binding Expressions

Working with SQL Server Databases

See also the following sections on working with SQL Server Express and LocalDB, and choosing between SQL Server and SQL Database.

Working with SQL Server Express LocalDB Databases

Working with SQL Server Express Databases

Working with Windows Azure SQL Database

Choosing between SQL Server and Windows Azure SQL Database

Working with NoSQL Database Management Systems

Using LINQ Queries in ASP.NET Applications

Using Dynamic Data Scaffolding

Securing Data Access

Optimizing Data Access Performance

Deploying a Database

Accessing Data through a Web Service

Additional Resources