background preloader

Entity Framework

Facebook Twitter

Entity Framework. RoMiller.com | Rowan works as a Program Manager for the ADO.NET Entity Framework team at Microsoft. He speaks at technical conferences and blogs at romiller.com. Rowan lives in Seattle, Washington with his wife Athalie. Prior to moving to the US he reside. ADO.NET Blog. ADO.NET Blog. Building an MVC 3 App with Code First and Entity Framework 4.1. Julie Lerman March 2011 Watch a video of this content Download the code for this article: Microsoft’s ADO.NET Entity Framework (EF) simplifies data access by allowing you to avoid working directly with the database in your code. EF provides you with three ways to describe the model of your entities.

In this whitepaper, I will walk you through creating a simple MVC 3 application using Entity Framework’s code first technology to describe your classes and manage all of your data access. Overview In this walkthrough you will build pieces of a blogging application. Define a set of classes to represent the entities for a blog — Blog, Post and Comment.Reference the Entity Framework code first assembly.Create a DbContext to manage the Blog classes and data access.Build a simple ASP.NET MVC 3 application that will let you view, add, edit and delete blogs.

Creating the MVC Application For this demo, all of the code will live inside of an MVC 3 project so the first step will be to create that project. Building an MVC 3 App with Code First and Entity Framework 4.1. Building an MVC 3 App with Code First and Entity Framework 4.1.