WCF - 这是很好使用“DataSet”用于通过NetTcpBinding传输数据 [英] WCF - Is that good to use "DataSet" for transferring data through NetTcpBinding
问题描述
其中一个服务合同将一个巨大的 DataSet
传递给客户端。我正在使用 BufferedTranfer
模式。
在极少数情况下,我有更多的数据要发送,因为这个原因我有一个混乱,将TransportMode更改为Streamed。
这个很好的做法是使用DataSet
通过 NetTcpBinding
/ p>
任何替代 DataSets
?
请不要从WCF服务返回数据集。
有关信息,请参阅:返回数据集从WebServices是撒旦的产生,代表世界上真正的邪恶,
One of by service contract passes a Huge DataSet
to the Client. I am using BufferedTranfer
mode.
In very rare cases I have more data to be send, because of this reason I am in a confusion to change the TransportMode to Streamed.
Is that good practice to use "DataSet"
for transfer data through NetTcpBinding
?
Any alternatives to DataSets
?
Please, do not return datasets from a WCF service.
For information why see: Returning DataSets from WebServices is the Spawn of Satan and Represents All That Is Truly Evil in the World,
这篇关于WCF - 这是很好使用“DataSet”用于通过NetTcpBinding传输数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!