Entity Framework 2.0: Cannot update EntityCollection

Posted by timmits on Stack Overflow See other posts from Stack Overflow or by timmits
Published on 2010-04-16T14:19:05Z Indexed on 2010/04/16 14:23 UTC
Read the original article Hit count: 244

Filed under:
|

Let's say we have the "EntityCollection products".

Then the following doesn't work:

foreach (var product in products) { product.LastUpdate = DateTime.Now(); }

As you can also not index an EntityCollection, how do you modify an entity in en EntityCollection?

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about c#