Is it ok to use SM to handle my linq datacontext lifetime or just create datacontext instance inside repository constructor? I heard from you will have memory leak problem in SM if you let it handle the datacontext. As commented by Rob Connery in this thread. See the comment below. Strange behaviour with StructureMap / ASP.MVC / Visual Studio / LinqToSql
I'm using SM and asp.net mvc . It seems that im getting my memory increased eventually even context is disposed.