This question is locked. New answers and comments are not allowed.
I am using DataAcces ORM on asp.net application and I would like to know if there is connection between the DataAccesContext and the objects retrevied via Linq or low ADO.NET Api, regarding disposing the context? As I have observed, I have a list of object that is used inside a datagrid and after disposing the context, in the profiler I don't see any change.
I read the documentation regarding the usage of DataAccess inside an ASP.NET application but my case is rather special because I use Visual Web Gui, which acts as WinForms inside the asp.net, so the only real possible solutions that I have are either disposing the context after any CRUD operation(and somehow don't use the objects that were maintained by that context either by using DTO template, or using detaching, in these cases I had some experiences in the past about performance penalty and are not option), or disposing the context after the form was closed, which brought me to the question that I asked in the beginning in my post.
So to summarizes this up I would like to know:
1.What is the correct way of disposing the context and without any memory leaks?
2.What is the best settings that I would have to make on the IIS part ,regarding application pool?
I read the documentation regarding the usage of DataAccess inside an ASP.NET application but my case is rather special because I use Visual Web Gui, which acts as WinForms inside the asp.net, so the only real possible solutions that I have are either disposing the context after any CRUD operation(and somehow don't use the objects that were maintained by that context either by using DTO template, or using detaching, in these cases I had some experiences in the past about performance penalty and are not option), or disposing the context after the form was closed, which brought me to the question that I asked in the beginning in my post.
So to summarizes this up I would like to know:
1.What is the correct way of disposing the context and without any memory leaks?
2.What is the best settings that I would have to make on the IIS part ,regarding application pool?