Entity insert without children are null - EF6

0

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.

    
asked by anonymous 05.09.2018 / 19:57

0 answers