Code First Northwind Data Service

The code-first functionality in Entity Framework 4.0 enables you to create a data model by first creating a set of data classes and then exposing those classes as typed DbSet objects accessible from a DbContext object.

Because DbContext provides access to the underlying ObjectContext, you can use DbContext as the data source for a data service using the Entity Framework provider. This sample defines an OData service by creating a code-first data model to access tables in an existing Northwind sample database. This data model is used as the Entity Framework-based provider for the data service. This sample shows how to the data service to support an Entity Framework provider based on DbContext instead of the usual typed ObjectContext.

northwind web services mvc 4


Download Here

Code First Northwind Data Service Code First Northwind Data Service Reviewed by Bhaumik Patel on 11:18 PM Rating: 5