Using self serving, two class, vb 2005
I'm in the process of changing my code to the VB.net 2005 syntax and I'm running into problems when I try and sort on more than 1 field.
This is what I have
Dim sorter As New SortExpression(EmployeeFields.LastName Or SortOperator.Ascending) And _
(EmployeeFields.FirstName Or SortOperator.Descending)
Which gives me this error: end of expression expected.
Both LastName and FirstName on their own work.
I've tried
Dim sorter As New SortExpression((EmployeeFields.LastName Or SortOperator.Ascending) And _
(EmployeeFields.FirstName Or SortOperator.Descending))
This compiles but gives me this error when I open the page.
Unable to cast object of type 'SD.LLBLGen.Pro.ORMSupportClasses.SortExpression' to type 'SD.LLBLGen.Pro.ORMSupportClasses.ISortClause'.