参考

http://social.msdn.microsoft.com/Forums/zh-TW/wcf/thread/bae898b2-a86b-48b0-bebb-d40f17171259

实体基类Entity中包含

        public event PropertyChangedHandler PropertyChanged;

不能对事件进行序列化,所以会有异常.

解决很简单,不让事件序列化就OK了,改成这样


        /// <summary>
        /// The property changed event.
        /// </summary>
        [field:NonSerialized()]
        public event PropertyChangedHandler PropertyChanged;

posted on 2010-09-27 15:14  半支烟  阅读(502)  评论(2编辑  收藏  举报