I want to get distinct records by using LINQ not on the base of Id but on other field of the table i.e. date. The table schema is ID (Unique Identifier),date (dateTime), Desc varachar(50)
Records are like : 1st row: Id 61DDF6A2-E5B7-4E88-91FE-5C63EF8E15D8 date 8/1/2010 Desc Abc
1st row: Id 61DDF6A2-E5B7-4E88-91FE-5C63EF8E15D8 date 8/1/2010 Desc Abc
2nd row: Id 61DDF6A2-E5B7-4E88-91FE-5C63EF8E15B1 date 8/1/2010 Desc Abc
3rd row: Id 61DDF6A2-E5B7-4E88-91FE-5C63EF8E15D8 date 8/1/2010 Desc Xyz
4th row: Id 61DDF6A2-E5B7-4E88-91FE-5C63EF8E15D9 date 8/3/2010 Desc AAAA
5th row: Id 51DDF6A2-E5B7-4E88-91FE-5C63EF8E15D9 date 8/3/2010 Desc AAAA
Now what i want is distinct records on the base of date
Required result is like :
id 61DDF6A2-E5B7-4E88-91FE-5C63EF8E15D8 date 8/1/2010 Desc Abc
Id 61DDF6A2-E5B7-4E88-91FE-5C63EF8E15D9 date 8/3/2010 Desc AAAA
Please response me as soon as possible.
Thanks