Passing the Object Type dynamically
<p>I have this code that has the [Ent] inside the using</p>

<pre><code> public static void Retion()
        {

            using (Ent entitiesContext = new Ent())
                {...}
         {
</code></pre>

<p>I need to pass the [Ent] dynamically, like this:</p>

<pre><code> public static void Retion(Type ds)
            {

                using (ds entitiesContext = new ds())
                    {...}
             {
</code></pre>

<p>This of course does not work. How to I change this so that I can pass it dynamically?</p>
