Does this implementation of the Entity Framework leaks memory?
问题 I just can't make out if the entity context is disposed in the usage flow when used in a using statement in a web application or a console application. Thanks! using System; using System.Web; namespace Foo.Model { public partial class FooEntities : ObjectContext { private const string CurrentContextKey = "FooEntities.Current"; [ThreadStatic] private static FooEntities _currentOnThreadStatic; private FooEntities _previousContext; /// <summary> /// Gets the current <see cref="FooEntities"/>