LINQ to Entities Code Review

Define AdventureWorks Database Sales Data Model

Code Download

  • Download Description:linq to entities download
  • .NET Framework:3.5
  • .NET Language:C#
  • Date Published:2009-07-01
  • Download Size:35 KB

Code Review

Code Walkthrough

Define the Adventure Works Sales Data Model in the Visual Studio 2008.

Adventure Works Sales Database model
  • Open a Visual Studio Project.
  • Add a "Link to SQL Classes" Template. (Project menu, Add option and New Item option)
  • Click on Database Explorer and create a new connection to the database
  • Drag Table objects from the Database Explorer onto the Data Model design surface
  • Save the data model as AdventureWorksSalesModel.dbml