开发者

Transport Database Query through Web Services without using Dataset

Understanding that passing Datasets thro开发者_StackOverflow中文版ugh 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#?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜