I have objects graph approximately ~80K records.
When I call SaveChanges I have an OutOfMemoryException. I've been reading about separating saveChanges in batches, but I've don't know how to do it. The trouble that I have in the context chanegd data from 7 tables and there is no straight hierarchy.
How to solve the issue?