Hello, I have a parent and child table in the database. FKs are not defined, so I added them in the model only.
I have parsing logic that manually manually constructs the parent entity, child entity and adds child entities to parent's collection, like parent.Children.Add(entity), where "Children" is EntityCollection<T>.
Unfortunately, PKs on the legacy tables are not identities, so I have to construct PK values before saving. I wanted to do this right before the save operation.
Is it possible to modify values of child entities once they've already been added to a parent entity's collection? I've tried iterating the child entity collection, but either get errors indicating collection cannot be modified or not seeing entity objects being modified.