title: How to dispose Entity Framework record objects after insertion?
body: <p>I insert a lot of records into an Entity Framework database and don't need them any more after I run <code>.SaveChanges();</code>. Moreover, I actually would like the memory to be released as soon as possible (for new records to be created). I don't keep any variables linking to old records objects but the GC doesn't seem to delete them, so, I think, it is the data context or something else who keeps them alive. How do I dispose them correctly to let GC to free memory they occupy?</p>