I have the following problem.
I need to insert an entity that has populated children, but I can not be null in the children to insert only the parent entity because in the next lines of precise code of the children filled to insert them.
I overridden the insert to put the child entity with state EntityState.Detached.
Even using this code it was still inserted.