I can't find the source for this problem. In C# it works fine when I do this:
CustomerCollection allCustomers = new CustomerCollection();
allCustomers.GetMulti(null);
foreach(CustomerEntity custo in allCustomers)
{
custo.Region = "Changed";
Console.WriteLine("Current region of {0} = {1}", custo.CustomerID, custo.Region);
}
I also tested it in VB.NET:
Dim allCustomers As New CustomerCollection
allCustomers.GetMulti(Nothing)
For Each customer As CustomerEntity In allCustomers
customer.Region = "Changed"
Console.WriteLine("New range of {0} = {1}", customer.CustomerID, customer.Region)
Next
No error whatsoever, even when MS advices not to change anything inside the collection, since the Collection.GetEnumerator() enumerator which is returned is for readonly access (All IEnumerator implementations are).
This is with the fix for this error: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=201 applied. (so I think OR it fixes it, OR I can't reproduce the error you have...).
I'll mail you the fixed ORM support classes library so you can try it out if it indeed fixes your problem. Let me know what the results are so I can set up further testing or release the new dll