Copying from EntityCollection to EntityCollection impossible?

Posted by timmits on Stack Overflow See other posts from Stack Overflow or by timmits
Published on 2010-04-18T18:35:03Z Indexed on 2010/04/18 18:43 UTC
Read the original article Hit count: 199

Filed under:
|
|

How would you do this (pseudo code): product1.Orders.AddRange(product2.Orders);

However, the function "AddRange" does not exist, so how would you copy all items in the EntityCollection "Orders" from product2 to product1?

Should be simple, but it is not...

© Stack Overflow or respective owner

Related posts about entity

Related posts about entity-framework