Entity Framework 2.0: Cannot update EntityCollection
- by timmits
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?