web service / wcf service, is it ever better to re

2019-05-03 08:00发布

So from what I've seen about services, custom objects seem to be the way to go when the service is written to return data. If I am writing a service that will be used to 1) populate a database, or 2) provide information for a web site, is there ever a use for returning a dataset/datatable as opposed to a list of custom objects with all of that information?

thanks

7条回答
Rolldiameter
2楼-- · 2019-05-03 08:34

Custom objects make it easier on your clients. DataSets/DataTables make it easier on you.

I think that you should base your decision on who you want to make it easier on.

查看更多
登录 后发表回答