Here a great person gave a option to sort a table with a different casting
It is possible to do it in Linq2Sql?
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.
This will only work client side if you dont use SQL queries as a string.
For instance (I’m just making up some fields):
Update: It seems you need to do this server side:
Use a SQL query to obtain your objects since Linq-to-SQL does not support your requirement.