.Net application calls Stored Procedure and returns collection which is stored as ‘result.’ I want to be able to group the results by ‘CreatorLineOfBusinessID’. It returns that field along with several other fields. I would like to use a LINQ query on the ‘result‘ data set. Thanks in advance.
Dim result As IEnumerable(Of eRefer_Reports.uspReport_ReferralsSentBetweenLinesOfBusinessResult)
strFromLOBID = " "
Session("FromLineOfBusiness") = strFromLOBID
strToLOBID = " "
Session("ToLineOfBusiness") = strToLOBID
result = repository.GetQueryResults(CDate(Me.txtStartDate.Text), CDate(Me.txtEndDate.Text), strFromLOBID, strToLOBID)
BindGridView(result)
Should group the results the way you want.