Tags: | Categories: LINQ Posted on 6/10/2009 9:00 PM | Comments (0)
I believe LINQ is a very nice advancement in creating database oriented applications as it allows us to separate application logic from the database. I have been using LINQ to SQL in my recent reporting application and have used various queries with ease.   With the power of Anonymous Types,... [More]
Tags: , | Categories: LINQ Posted on 6/10/2009 6:38 PM | Comments (0)
In one of my recent project, I had to retrieve Minimum and Maximum date from the result set using LINQ to SQL. I was really surprised how easy it was: //Retrieve Minimum Date var MinDate = (from d in dataRows select d.Date).Min(); //Retrieve Maximum Date var MaxDate = (from d in dataRows selec... [More]