Daily Archives: August 24, 2007

Erik Meier kinda compares LINQ to SQL to Entity Framework

I just came across this interview on the INFO-Q website. I like how they do this. Short questions and answers. Each q/a has a video clip, where you can watch and listen to the subject of the interview and simultaneously read the text of the question and answer. That makes it really easy for me to paste these two tidbits.

Basiically he says LINQ to SQL is for simple database scenarios and EDM (Entity Data Model) is for very complex schemas and giant databases. Not earthshatteringly different than what are figuring out, but interesting to hear it from the guy who is credited for inventing LINQ. He’s NOT comparing it to Entity Framework, since there’s more to Entity Framework than the EDM that lies at it’s core. Here is a post about Mike Pizzo comparing LINQ to SQL and Entity Framework directly.

What about DLINQ (aka LINQ to SQL)? 
DLINQ is and instance of LINQ over Relational Data, which is trying to address the simpler mapping scenarios. In DLINQ there are several ways to do this. You can point at your database and get your classes from the metadata and the database, you can put custom attributes on your classes, and define your mapping like that or you can use an external mapping file. DLINQ, like many other object relation mappings, has this notion of context, which is the bridge between the object world and the database world, that does the change tracking and holds the database context, and the transaction context and so on. Also this context will take your expression trees, translate them to SQL and then materialize your objects. DLINQ is one example of using LINQ to query against Relational Data.

Can you relate EDM into this discussion?
Yes, the EDM is designed for situations where you have really complicated schemas and giant databases, where your mapping scenarios are much more complex, where you want to do de-normalization, and where you want to map different tables to a single type or you want to have one table mapped to different types, or you have complicated implementations of inheritance. These are situations where you have really complicated enterprise applications, legacy applications, where simple direct one to one mapping doesn’t fit.
 
Also interesting to hear him talk about what he’s working now.

So many data access options, so little time!

At DevConnections this fall, I’m going to do a post-con, 1/2 day workshop to provide some guidance over which Data Access options in .NET 3.5 are right for you now that we have MORE choices coming out.

Do you use classic ADO.NET? LINQ to SQL? Entity Framework? And if Entity Framework, do you use Entity SQL? LINQ to Entities? Entity Client?

More options should be liberating, but at first glance, it’s a little daunting, which is why I am doing this session.

While the main conference will have a special Data Access track, and plenty of opportunities to learn about Entity Framework, LINQ to SQL and more, I think that a wrap-up session will be really helpful.

Because it’s a post-con, it’s an additional fee on top of the main conference – but only $199.

Be sure to check it out!

Dedicated Data Access track at DevConnections Las Vegas in November!

I’m very excited about the Data Access track at DevConnections this fall.

Generally, people don’t know what to do with data access sessions. Do they go into Visual Studio Connections? ASP Connections? SQL Server Connections? They belong everywhere! Whenever I’m submitting ADO.NEt talks for a conference I struggle with deciding which track to choose, because it belongs in most of them.

So we built a single track with nothing but Data Access talks and it’s a rock start line-up!

You’ll find the talks listed under the ASP Connections Sessions and the Visual Studio Connections Sessions (look for Microsoft Day Visual Studio section for the MS talks, and Data Access Track for the 3rd part speaker talks).

Thanks to all of the conference chairs, conference staff, speakers and folks on the Data Programmability Team at Microsoft who have helped bring this about.

Microsoft Day:

  • ADO.NET Entity Framework Designers
  • Data Modeling and Application Development with the ADO.NET Entity Framework and LINQ over Entities
  • Project Astoria: Data Services for the Web
  • Optimizing Online, Enabling Offline with SQL Server Compact and Sync Services for ADO.NET

Wed & Thursday

John Papa, author of the MSDN Magazine Data Points column

  • Unraveling the Entity Framework
  • Implementing the Entity Framework

Dino Esposito, All ’round .NET wizard

  • Typed DataSets, Linq-to-SQL, Linq-to-Entities: Data Design Patterns Do Matter

Don Kiely: Data & Security Guru

  • ADO.NET Performance Tips & Tricks

Kathleen Dollard: The Queen of CodeGen

  • ADO.NET Metadata and Code Generation

Bill Vaughn, The Legendary Bill Vaughn 🙂

  • ADO.NET Connecting

Dave Sussman, Author of many ADO.NET & ASP.NET Books

  • Black Belt Data Binding (in ASP.NET)

Alex Homer, Partner in crime to the many ADO.NET & ASP.NET Books with Dave Sussman

  • Five Favorite Features in ADO.NET and SQL Client

Julie Lerman (moi)

  • Real World Entity Framework (looking at 3-tier patterns)
  • ADO.NET 3.5 Data Access Guidance (post conference 1/2 day workshop: 9-12am, add’l fee)