wcf上的转换代理;我必须设置ProxyCreationEnabled = false [英] changetracking proxies over wcf; do i have to set ProxyCreationEnabled = false

查看:96
本文介绍了wcf上的转换代理;我必须设置ProxyCreationEnabled = false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在下面的帖子中,迭戈说

  一般来说,POCO代理的WCF序列化存在问题(延迟加载和变更跟踪类型)。在Beta 2中,唯一的解决方法是在实现序列化对象时转换代理:

http://social.msdn.microsoft.com/Forums/en-US/adonetefx/thread/1f5088fb-39d0-4e53-85bf-98bfa11bb911

解决方案

Zeeshan,

我已经在POCO Proxies博客文章的评论中回复了你,但为了其他的好处,RTM会有所改进,但有还有一些局限性。请继续关注ADO.NET博客( http://blogs.msdn.com/adonet/ ),了解第二部分POCO Proxies博客,了解有关代理序列化的更多信息。

感谢,



IN the post below, Diego said

 There are issues with WCF serialization of POCO proxies in general (both of the lazy-loading and change-tracking kinds). In Beta 2 the only workaround is to turn of proxy creation when materializing objects for serialization:

http://social.msdn.microsoft.com/Forums/en-US/adonetefx/thread/1f5088fb-39d0-4e53-85bf-98bfa11bb911

解决方案

Zeeshan,

I already responded to you in the comments of the POCO Proxies blog post, but for other's benefit, there are going to be improvements in RTM but there are still some limitations. Stay tuned to the ADO.NET Blog (http://blogs.msdn.com/adonet/) for the second part of the POCO Proxies blog to learn more about serialization of proxies.

Thanks,
Diego


这篇关于wcf上的转换代理;我必须设置ProxyCreationEnabled = false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆