tags:

views:

217

answers:

2

I can return a single value in my webservice, but I can't figure out how to return multiple rows. I have an ILIST collection of the data from my database.

+1  A: 

If the method of your web service returns arrays of objects, that should do the trick. So basically you just have to convert that IList to an array and, depending on what type of objects you have in the IList, fill some standard objects with the data to be returned.

Dante
I was missing the cast from ILIST to LIST. -Thanks
Tony Borf
A: 

Create a class that can hold all the rows, then return that class

Nick Spiers