一项服务契约(Contract)通过巨额DataSet
给客户。我正在使用 BufferedTranfer
模式。
在极少数情况下,我需要发送更多数据,因此我很困惑将 TransportMode 更改为 Streamed。
这是使用"DataSet"
的好习惯吗?通过 NetTcpBinding
传输数据?DataSets
的任何替代品?
最佳答案
请不要从 WCF 服务返回数据集。
有关原因的信息,请参阅:Returning DataSets from WebServices is the Spawn of Satan and Represents All That Is Truly Evil in the World,
关于c# - WCF - 使用 "DataSet"通过 NetTcpBinding 传输数据好吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11790309/