Entity Framework Context Lifetime Best Practices In this post I’m going to write about one of the major decisions that you need to take when you use ORM tools like Entity Framework . This decision is the context lifetime . The Problem Context lifetime is a very crucial decision to make when we use ORM s. Since the context is acting as an entity cache (it holds references to all the loaded entities for change tracking and lazy loading purpose), it may grow very fast in memory consumption. Also this...