Entity Framework: how to clone an entity?

In my last post, I wrote that the classic detachment/attachment pattern includes the clone of the entity.

But some of you didn’t know how to clone an entity.

I see two choices:

  • you can use reflection (with optimization ability) as I did here
  • you can also use serialization / deserialization as Patrick Magee proposes here
This entry was posted in 7671, 7674. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*