title: How to set dynamic entity to dbcontext Entity Framework Core?
body: <p>I got a method that receives an entity like string to return a list of that entity.</p>
  <p>What I want is set the entity dynamically and return the result.</p>
  <p>What I need is something like this:</p>
  <pre><code>DbContext.Set &lt;Type.GetType(&quot;Entity&quot;)&gt;().Select(e =&gt; e);
  </code></pre>
  <p>This the error that I getting:</p>
  <p><img src="https://i.stack.imgur.com/vR95m.png" alt="Error" /></p>
  <p>Maybe this is not the correct to do so.</p>
  <p>The <code>Set</code> method comes from Entity Framework Core.</p>
  <p><img src="https://i.stack.imgur.com/PvlYl.png" alt="Set Method" /></p>