Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Linq, DLinq and XLinq? [closed]

Tags:

c#

.net

linq

I am reading about Linq. Please explain to me how Linq, DLinq and XLinq are different.

like image 275
user576510 Avatar asked Jul 04 '11 04:07

user576510


1 Answers

Linq is the base language extension which lets you query data collections using sql-like syntax. The big advantage is that it is written next to your code in the Visual Studio environment so the concepts of sql data access have been promoted to first level language constructs. This means you get all the intellisense and other cool advantages of working in VS.

So like I said, Linq is the basic technology. You can use this to query virtually anything. In plain vanilla form you can just access data like arrays

DLinq is what linq to sql was called when it was in development.

Linq to sql is a way of mapping your database to a data context and then you can use linq to access your tables in your database and make changes. It is a pretty cool technology but unfortunately it is out of date now and is being "discontinued" by Microsoft in favour of Entity Framework (which is Linq to Entities).

When I say discontinued what I mean is this: they have said they will do more features after asp.net 4.0 but they are going to put main development emphasis on Entity Framework and lots of Microsoft apps are going to be converted to use Entity Framework.

XLinq as you might have guessed by now is a way of querying Xml files with Linq.

Here is a tutorial introducing it.

like image 160
Ashish Agarwal Avatar answered Sep 21 '22 14:09

Ashish Agarwal