Unload large context objects. Is it possible?
Posted: Wed 04 Feb 2009 03:55
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
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