• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 499
  • Last Modified:

Advantages of LINQ

I need to create a proposal why one should use LINQ.

What are the pros and cons?
0
mathieu_cupryk
Asked:
mathieu_cupryk
  • 2
  • 2
  • 2
2 Solutions
 
Éric MoreauSenior .Net ConsultantCommented:
Linq-to-What???

I wouldn't live now without LINQ-to-Objects. Try to filter, sort, select only a few fields of a collection and now join that to another source. All this in a single query!

But that alone hardly justifies the fact of moving to the .Net Framework 3.5.

LINQ-to-XML is another of my favorite.

I don't see why one shouldn't use LINQ. It is built-in to the language.
0
 
mathieu_cuprykAuthor Commented:
ok this is what I thought.

Do you know where I can get a code generator for classes I read a table from the database and create the corresponding class.
0
 
Sreedhar VengalaCommented:
Look at this : http://www.aspfree.com/c/a/.NET/Introducing-LINQ-to-SQL-Designer-using-Visual-Studio-2008/
Also to learn Linq: Linqpad is the best tool (do bit of google on it)
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
Éric MoreauSenior .Net ConsultantCommented:
>>Do you know where I can get a code generator for classes I read a table from the database and create the corresponding class.

I don't know how it is related to the question but Entity Framework is doing that. There is also CodeSmith doing that.
0
 
Sreedhar VengalaCommented:
SqlMetal is a command line generator that builds the OR types used by LINQ to SQL. It reverse engineers a given database.
http://www.hookedonlinq.com/SqlMetal.ashx
http://msdn.microsoft.com/en-us/library/bb399400.aspx

0
 
mathieu_cuprykAuthor Commented:
hi sree not with link if possible. done in asp.net would be cool.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now