Tuesday, October 5, 2010

LINQ : the programmer's delight

In almost every computer application we come across, the need to store data. We use arrays, collections etc. to store data temporarily and also databases for a permanent storage.We also use classes and structures to model it. However inevitable operations involved with any kind of data storage is Creating , Reading, Updating, Deleting and Searching (CRUDS) data in these data stores.
Sure we can write our own code to do these but these operations occur so often that every high level language tries to integrate them in simple to use forms. And so, we have queries. Those of you who have been working with queries especially the people who have worked with SQL and Oracle must have used them.
LINQ or Language Integrated Queries are another way of querying data stores in C#.So lets find out why should one use LINQ.