SouthSpawn posted on Saturday, May 17, 2008
I am trying to do the following.
-
Using DataLinq = ContextManager(Of SystemDataLinqDataContext).GetManager("ConnectionString")
-
Dim DataResult = From CompanyItem In DataLinq.DataContext.spGetCompanies( _
-
CompanyPageIndex, _
-
CompanyPageSize, _
-
CompanyActive, _
-
_totalRecordCount) Order By SortBy.ToString _
-
Select New CompanyRO( _
-
CompanyItem.CompanyID, _
-
CompanyItem.CompanyTypeID, _
-
CompanyItem.CompanyTypeDescription, _
-
CompanyItem.CompanyTypeActive, _
-
CompanyItem.Name, _
-
CompanyItem.Description, _
-
CompanyItem.RoleID, _
-
CompanyItem.Website, _
-
CompanyItem.Username, _
-
CompanyItem.Password, _
-
CompanyItem.CompanyLookUpCode, _
-
CompanyItem.Active)
-
-
AddRange( _
-
DataResult)
-
End Using
For some reseason, the "SortBy.ToString" parameter that I am passing in doesn't order the list.