DCSIMG
Entity Framework vs. Linq to SQL - Wortzel's blog

Wortzel's blog

.Net (2.0, 3.0, 3.5), C#, Asp.net, Com+, GIS(ESRI Software), Management, Analysis & Design, Life, Trips, And more...
Entity Framework vs. Linq to SQL

These two data access strategies should be shipped in the new Visual Studio 2008 (aka "Orcas") but from some reasons Microsoft decided to cut the entity framework from this release and to ship it in the middle of 2008. So what is the different between these two frameworks? When should I choose the Linq to Sql and when do it really recommended to wait for the Entity framework?

I decided to look for some answers to these questions, just stay with me few more moments…

Category Linq to SQL Entity framework
Model Type Linq to sql is best matching for domain model with specific sql server scheme The Entity Framework gives the ability to write to conceptual data model with strongly typed, inheritance, and relationships
Databases Supported Only SQL Server!

Design to support variety databases (DB2, MySql, Sybase and more)

* Oracle maybe will support a provider in the next release...

Mapping Mapping Single class to a single table Mapping Single class to multiple tables
Data Sources Tables in Sql Server Tables in Sql Server, Replication, Reporting Services, BI, Integration Services and etc.
Development time Design to rapid development agent Sql Server scheme More complex framework with more flexibility

Published Friday, January 04, 2008 1:20 PM by Avi Wortzel

Comments

# re: Entity Framework vs. Linq to SQL@ Tuesday, February 12, 2008 11:39 PM

Thanks for this overview.

Would it be right to say that: LINQ to SQL is the quick'n'durty (high productivity) model and the Entity framework is the right (seen from an architectual perspective) and a litle more complex model?

And what about cobining the Entity framework and LINQ to Entities - Is that the perfect world?? Or??

Casper Stendal

# re: Entity Framework vs. Linq to SQL@ Wednesday, February 27, 2008 8:55 AM

Hi Casper,

The Entity Framework is much sophisticated and generic framework. I can't say that only  Entity Framework is right, because it really depends on your specific system and the model type you prefer (there are pros and cons for each of them). I think it'll be a best practice to use the Entity Framework and LINQ to Entities together…

Avi Wortzel

# re: Entity Framework vs. Linq to SQL@ Friday, February 13, 2009 7:38 AM

I am developing an data driven application in silverlight.

Is EF a good choice for such aplication

i am using SQL 2005 for database

what if I want to run my project in Oracle also

Manju

# re: Entity Framework vs. Linq to SQL@ Friday, March 06, 2009 8:09 AM

Hi Manju,

Oracle already supports in the Entity Framework in their ODP.NET.

It should works good.

Avi

Avi Wortzel

# My initial take on Entity Framework « Priya’s Blog@ Wednesday, June 17, 2009 2:39 PM

Pingback from  My initial take on Entity Framework « Priya’s Blog

My initial take on Entity Framework « Priya’s Blog

# Luv Brake Light Vw Jetta, Luv Pickup Chevy Car Radiator Fan@ Thursday, May 20, 2010 9:23 PM

Pingback from  Luv Brake Light Vw Jetta, Luv Pickup Chevy Car Radiator Fan

Luv Brake Light Vw Jetta, Luv Pickup Chevy Car Radiator Fan

# 2004 Gmc Canyon Performance Parts, Make Model Grand Canyon@ Saturday, May 22, 2010 6:44 PM

Pingback from  2004 Gmc Canyon Performance Parts, Make Model Grand Canyon

2004 Gmc Canyon Performance Parts, Make Model Grand Canyon

# Replacement Audi Cls55 Amg, 280sl Discount Auto Parts Cls55 Amg@ Sunday, May 23, 2010 1:35 AM

Pingback from  Replacement Audi Cls55 Amg, 280sl Discount Auto Parts Cls55 Amg

Replacement Audi Cls55 Amg, 280sl Discount Auto Parts Cls55 Amg

# 780 Oem, 780 Aftermarket Volvo 240 Oxygen Sensor@ Sunday, May 23, 2010 5:48 AM

Pingback from  780 Oem, 780 Aftermarket Volvo 240 Oxygen Sensor

780 Oem, 780 Aftermarket Volvo 240 Oxygen Sensor

# Bulbs Hid Pontiac Parisienne, Estate Wagon Discount Buick Electra Chevrolet Caprice 1985 Pontiac Parisienne - 143.1fh.org@ Monday, May 24, 2010 1:41 PM

Pingback from  Bulbs Hid Pontiac Parisienne, Estate Wagon Discount Buick Electra Chevrolet Caprice 1985 Pontiac Parisienne - 143.1fh.org

Bulbs Hid Pontiac Parisienne, Estate Wagon Discount Buick Electra Chevrolet Caprice 1985 Pontiac Parisienne - 143.1fh.org

# Classic Mercedes 240d Low Mileage, 240d Part Cheap - 5.tgrconversions.com@ Tuesday, May 25, 2010 10:30 AM

Pingback from  Classic Mercedes 240d Low Mileage, 240d Part Cheap - 5.tgrconversions.com

Classic Mercedes 240d Low Mileage, 240d Part Cheap - 5.tgrconversions.com

# Camry Used Auto Parts Toyota Paseo, Toyota Paseo Radiator Hose Gates - 5.unlockiphone30.net@ Tuesday, May 25, 2010 2:14 PM

Pingback from  Camry Used Auto Parts Toyota Paseo, Toyota Paseo Radiator Hose Gates - 5.unlockiphone30.net

Camry Used Auto Parts Toyota Paseo, Toyota Paseo Radiator Hose Gates - 5.unlockiphone30.net

# Marauder Dealers Buy, Marauder Rent Jolene Blalock - 382.dlmreza.net@ Tuesday, May 25, 2010 10:12 PM

Pingback from  Marauder Dealers Buy, Marauder Rent Jolene Blalock - 382.dlmreza.net

Marauder Dealers Buy, Marauder Rent Jolene Blalock - 382.dlmreza.net

# 300sdl Connect To Mercedes Benz, 300sdl Buy Replacement - 131.luna-atra.net@ Wednesday, May 26, 2010 3:18 AM

Pingback from  300sdl Connect To Mercedes Benz, 300sdl Buy Replacement - 131.luna-atra.net

300sdl Connect To Mercedes Benz, 300sdl Buy Replacement - 131.luna-atra.net

# 1992 - 1989 @ Geo Metro Sale Ebay, Low Price Geo Tracker Headlight - 239.jordanbrandallamerican.com@ Monday, May 31, 2010 10:23 AM

Pingback from  1992 - 1989 @ Geo Metro Sale Ebay, Low Price Geo Tracker Headlight - 239.jordanbrandallamerican.com

1992 - 1989 @ Geo Metro Sale Ebay, Low Price Geo Tracker Headlight - 239.jordanbrandallamerican.com