问题
How to create Deep Clone from objects returned via Entity Framework ? The source object also have some other collections associated with it. In other words, how to clone an entity returned from Entity Framework ?
回答1:
Just like how we deep clone any other objects. You need override the clone on source object and provide a implementation by copying each memberwise.
http://msdn.microsoft.com/en-us/library/system.object.memberwiseclone.aspx
How do you do a deep copy of an object in .NET (C# specifically)?
来源:https://stackoverflow.com/questions/5249633/deep-clone-using-entity-framework