title: Autofac generic registration
body: <p>Is there a way I can accomplish something like this:</p>
  
  <pre><code>var builder = new ContainerBuilder();
  builder.Register(c =&gt; c.Resolve&lt;DbContext&gt;().Set&lt;TEntity&gt;()).As(IDbSet&lt;TEntity&gt;);
  </code></pre>