Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using SQL Server 2008 R2 with Visual Studio Express

I want to create either "LINQ to SQL" classes or use "Entity Framework" from Visual Studio Express 2010. When I attempt to add a data source my only options are:

  1. "Microsoft Access Database File"
  2. "Microsoft SQL Server Compact 3.5"
  3. "Microsoft SQL Server Database File"

Do I need VS2010 Pro to use LINQ to SQL or EF? I thought I could do all of this from Express. I even went so far as to install, "Microsoft SQL Server 2008 Native Client" and it still doesn't show SQL Server 2008 as a data source.

Thanks!

p.s. I feel like a complete idiot that I cannot get this to work

like image 737
Chris Avatar asked Jul 23 '10 07:07

Chris


1 Answers

LINQ to SQL (L2S) and LINQ to Entities (L2E) (aka Entity Framework) are part of the .NET Framework, and so are part of .NET regardless of what version of VS you use.

Both first appeared in 3.5 and are updated in 4.0, although LINQ to SQL won't be progressed any further in terms of functionality. Hence there isn't a dependency on the IDE. What might be missing is the LINQ to SQL or LINQ to Entity designers, but I don't think from memory they are.

If you select Add New Item and look in the Data group you should find "LINQ to SQL classes" and "ADO.NET Entity Data Model" - if not perhaps the designers are not part of Express.

[edit] Seems this has been asked before: Connecting to SQL Server with Visual Studio Express Editions

like image 117
Quango Avatar answered Oct 02 '22 15:10

Quango