When trying to use an
EntityServerSaveInterceptor
with Code First I'm getting a "Collection was modified; enumeration operation may not execute" error.
Is it obvious what I'm doing wrong?
thanks
protected override bool ExecuteSave()
{
var em = this.EntityManager;
var entities = em.FindEntities(EntityState.Added | EntityState.Modified | EntityState.Deleted);
foreach (IEntity entity in entities)
{