title: Unable to resolve service for type ApplicationContext
body: <p>I have my <code>ApplicationContext</code> as following :-</p>
  
  <p>You can see i am deriving ApplicationContext from <code>ChildContext</code> (child class) that in the end derives from `IdentityDbContext'.</p>
  
  <pre><code>public class ApplicationContext : ChildContext
  {
      public ApplicationContext(DbContextOptions&lt;ChildContext&gt; options)
      : base(options)
      {
      }
  
      public DbSet&lt;Class&gt; Class { get; set; }
  }
  
  
  public  class ChildContext : IdentityDbContext&lt;IfsUser&gt;, IIFSContext
  {
      public ChildContext(DbContextOptions&lt;ChildContext&gt; options)
      : base(options)
      {
      }
  
      public virtual DbSet&lt;Student&gt; Students { get; set; }
  }
  </code></pre>
  
  <p>Startup.cs</p>
  
  <pre><code>services.AddDbContext&lt;ApplicationContext&gt;(options =&gt;
      options.UseSqlServer(Configuration.GetConnectionString("ApplicationDB")));
  </code></pre>
  
  <p>When i try to get instance</p>
  
  <pre><code>var context = services.GetRequiredService&lt;ApplicationContext&gt;();
  </code></pre>
  
  <p>I get the following error</p>
  
  <blockquote>
    <p>Unable to resolve service for type
    'Microsoft.EntityFrameworkCore.DbContextOptions`1[ChildContext]' while
    attempting to activate 'ApplicationContext'.</p>
  </blockquote>