MSDN Archive Home
Help and FAQs
ADO.NET Entity Framework Query Samples
All Resource Updates
Change History (all pages)
ADO.NET Entity Framework Query Samples is a small Windows Forms program which contains several basic Entity SQL and LINQ to Entities queries against that NorthwindEF Entity Data Model (a modified version of Northwind).
Its goal is to help you learn the features of the different query languages available in the Entity Framework, and to let you visualize how the results and the translated store queries look like.
UPDATE: The samples have been updated for VS 2010 Beta2.
The project supports querying multiple backends. Included are:
SQL Server 2000 using SqlClient
SQL Server 2005 using SqlClient
SQL Server 2008 using SqlClient
SQL Server Compact 3.5 SP1
Previous versions of these samples can be found at
Nov 23 2009 at 9:00 PM
, version 9
Sep 3 2009 at 8:55 PM
Feb 17 2010 at 10:51 PM
I downloaded this sample and it will not run. The program conversion utility ran and did not convert the program properly. I thought the program had already been converted to VS2010 Beta 2 as it states above. Also, the Northwind EF database is not included in the download!
Oct 20 2010 at 6:27 PM
Where do I get tne Northwind EF database?
Nov 30 2010 at 7:39 PM
script to create Northwind EF DB in included inside the zip file under 'DB' directory.
Nov 30 2010 at 7:41 PM
the connection string inside app.config file need to be changed to point to your instance of DB that has NorthwindEF installed.
Mar 3 2011 at 10:21 AM
I am getting error with AttachDbFilename=|DataDirectory| in App.config, can someone help me on this.
Mar 19 2011 at 7:23 AM
This is a Fantastic Sample! Regarding database issues. I created a database, did a build and ran the app and was not able to connect. This will get you running in 3 mins: 1) Read the readme.txt 2) Open SQL Server Management Studio and run the EFQuerySamples\DB\CreateNorthwindEFDB.sql script to create a database. 3) Open Server Explorer in VS2010, create a new connection to the new database, right click properties, copy the Connection String property. 4) Open App.Config, modify NorthwindEF (SQL Server 2008) connection string (make a copy first rename copy to orig_NorthwindEF (SQL Server 2008)...), then REPLACE connection string='xxxxxx' with connection string='[paste value from Server Explorer Connection String property]'. 5) Build and run no problem.
Sign in to add a comment
EFQuerySamples for Vis...
Thu May 27 2010 at 7:00 AM
Related Resource Pages
ADO.NET Entity Framework & LINQ to Relational Data
More Tags ...
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.