Serializable classes and dynamic proxies in EF - how?

前端 未结 5 465
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 12:08

In [a previous posting], I was set on the path to having to clone my entities. This I\'ve attempted to do with a serialisation approach as found in [codeproject].

b

5条回答
  •  遥遥无期
    2020-11-29 12:40

    Turn off lazy loading and turn off proxy class creation. Anyway you still need to add the Serializable/DataContract attributes in order to make it serializable.

提交回复
热议问题