Page 1 of 1

Unload large context objects. Is it possible?

Posted: Wed 04 Feb 2009 03:55
by mpovidlov
I am loading large blobs (~10Mb) to the database using Entities.
I create an object that represents a row in the table. Then I add it using the generated method to the context, then I call SaveChanges() and then I do not need to keep it in memory, otherwise I will run out of memory.
Is it possible to unload the stored object from memory right after saving it to the database?
Thanks

Posted: Wed 04 Feb 2009 12:52
by AndreyR
Sorry, but this question is rather associated with Entity Framework usage, and exceeds the bounds of our support.
Take a look at this link:
http://msdn.microsoft.com/en-us/library/bb738611.aspx