Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transport Database Query through Web Services without using Dataset

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#?

like image 877
Marty Trenouth Avatar asked Feb 23 '26 22:02

Marty Trenouth


1 Answers

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.

like image 60
John Saunders Avatar answered Feb 25 '26 13:02

John Saunders



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!