Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I learn Linq to SQL even though its being rolled into Entity Framework?

I am looking to learn Linq to query MS SQL databases, but am unsure of which path to take. I read recently that Linq to SQL is being rolled into Entity Framework, and development has maybe stagnated.

Is it worth learning Linq to SQL still? Or should I be focusing on Entity Framework or another Object Relational Model like Ideablade's Devforce which is moving to Linq as it's query language?

like image 403
csjohnst Avatar asked Feb 27 '09 01:02

csjohnst


2 Answers

Linq to SQL is being rolled into the Entity Framework, and that's where that team is putting its energies. So, knowing the Entity Framework going forward would probably be your first priority (I would make it mine.)

However, if you have the cycles, it's not wasted time to understand Linq to SQL. There's still a lot about Linq, expressions, lazy loading, delayed execution, etc. that you can learn from it and will still be applicable long after it has been fused into the Entity Framework.

like image 99
jro Avatar answered Oct 19 '22 06:10

jro


I doubt that the LINQtoSQL provider is going away, though, it does seem to be true that the focus on extending LINQ will be with Entity Framework. The problem is that the Entity Framework is really awful at present, IMO. I'm proceeding to develop apps using LINQtoSQL as the ORM. I fully expect that the language support will be there in the future. When LINQtoEntities catches up, I may look into it, though LINQtoSQL in its current incarnation seems to be adequate (with a few tweaks I've added myself) for my needs. This is especially true using Dynamic LINQ which I've used to solve some thorny issues that I couldn't get otherwise (sort by property is a lot simpler with Dynamic LINQ).

You might want to consider using nHibernate and LINQ for nHibernate.

like image 33
tvanfosson Avatar answered Oct 19 '22 05:10

tvanfosson