I have a table contains a column with Date datatype. I want to get the record which its date value is the maximum.
Linq supports Max, but it returns the value itself. I want the record which its value is the maximum.
Any help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming
Recordsis a collection of your object and the column/property to get the max of is calledvalue: