Use the same DbContext in the entire controller, or use a new DbContext whenever need it?
<p>I'm using MVC .Net. Usually I always use something like below to create one instance whenever I need to query the DB:</p>

<pre><code>using (EntitiesContext ctx = new EntitiesContext())
{
    ....
}
</code></pre>

<p>Then I see lots of sample codes that always have one instance of DBContext in the controller, use it whenever needed, and Dispose it when the controller is Disposed.</p>

<p>My question is: which one is the right way to use it? Any advantage/disadvantage? Maybe, is there any performance difference?</p>

<p>Thanks</p>