I have a [Updates] table with [Version] column which is stored as a varchar in the sql server, and as a string in my entities.
How can I override the default comparer for that specific column?
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.
You can use LINQ to add an
Order Byoperator to the query you’re using to create the table in the_PreprocessQuerymethod.I go over the details on how to write a
_PreprocessQuerymethod in this SO question: Is there a way to create a search screen in Lightswitch based on a dropdownThen check out the ordering operator samples from MSDN to sort your column however you want:
C# Samples
VB.NET Samples