Clone Adapter gen'd Objects

Posts   
 
    
Posts: 27
Joined: 22-Feb-2012
# Posted on: 02-Mar-2012 20:37:10   

Hello,

~~The Subject kind of says it all, how do I clone an entity? There are various threads covering this topic

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7568

but that requires IEntity which none of my entities implement.. ~~

Ok, just converted the cloning code to use IEntity2 (3.1) , are there going to be any side effects using the new interface?

Thank you, Stephen

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 02-Mar-2012 21:15:30   

stephenpatten wrote:

Ok, just converted the cloning code to use IEntity2 (3.1) , are there going to be any side effects using the new interface?

No, that is fine. In fact could use the IEntityCore interface, but for some properties like entity.Fields.IsDirty you would need to cast. So, just using IEntity2 is ok.

David Elizondo | LLBLGen Support Team