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
Unload large context objects. Is it possible?
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
Take a look at this link:
http://msdn.microsoft.com/en-us/library/bb738611.aspx