views:

40

answers:

1

Understanding that passing Datasets through web services is a bit heavy (and almost if not completely unconsumable to non .NET clients) what is the best way to prep database query results that don't map to known types for transport through web services in c#?

+1  A: 

Return your results as collections of Data Transfer Objects. These would be simple objects with nothing but properties. There would be one property for each "column" of your result.

I don't know what you mean about passing the query. That's not normally done. You might pass criteria for the query, but not the query itself.

John Saunders
Passing the Query Results.
Marty Trenouth
Ok, good, as I said, pass the results back as a list of DTO.
John Saunders