Serializable classes and dynamic proxies in EF - how?

前端 未结 5 470
爱一瞬间的悲伤
爱一瞬间的悲伤 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:37

    Look into T4 Templates for Entity Framework, you can control how EF generates your entities, you will have to define that they are serializable in the T4 Template.

提交回复
热议问题