title: How can I use IdentityDBContex while inheriting from base DBContext
body: <p>I have multiple DBs in my project, all of them should derive from an abtract <code>BaseDbContext</code> that derives from  <code>DbContext</code>. My <code>BaseDbContext</code> contains new methods and some overrides of the <code>DbContext</code> methods. One of my DBs should work with identity so it should inherit from <code>IdentityDbContext</code> but it should also inherit my <code>BaseDbContext</code> since it needs the same logic. 
  How can I accomplish this with a good design? </p>
  
  <p>Two options I have thought about and their drawbacks are:</p>
  
  <ol>
  <li>Make my <code>BaseDbContext</code> inherit from <code>IdentityDbContext</code>, that will create all the identity tables in all of my DBs when they are actually only needed in one.</li>
  <li>Duplicate the code from <code>BaseDbContext</code> in the DB that needs to use the identity and inherit only from <code>IdentityDbContext</code>, that will result in all the bad design that comes with code duplication. </li>
  </ol>
  
  <p>Is there a better way to do this? Should I settle for one of the listed options and if so which? </p>