How can I set the maxItemsInObjectGraph property programmatically from a Silverlight Application?

前端 未结 3 840
悲&欢浪女
悲&欢浪女 2020-12-18 00:17

I have a Silverlight 3.0 application that is using a WCF service to communicate with the database, and when I have large amounts of data being returned from the service meth

3条回答
  •  伪装坚强ぢ
    2020-12-18 01:05

    Change the maxItemsInObjectGraph in your WCF service for each endpoint, changing it in Silverlight means the client will be able to support the behavior, but the service must support it aswell.

    After changing it in your service, regenerate the proxy/update web service, and you will get a new ServiceReference.config, that will include the new maxItemsInObjectGraph value

提交回复
热议问题