title: How to add multiple identity and multiple role in asp.net core
body: <p>I am new to asp.net core. So this might not be a good question.</p>
  <p>I have 3 classes: <code>Admin</code>, <code>Doctor</code>, <code>Patient</code>.</p>
  <p>I want all those users to be able to login and see their dashboard. All of them will have different level of access.</p>
  <p>So I derived these classes from <code>IdenetityUser</code> like this:</p>
  <pre><code>public class Admin : IdentityUser
  {
  }
  
  public class Doctor : IdentityUser
  {
      public const int MaxAppointPerDay = 28;
  
      public Gender Gender { get; set; }
  }
  
  public class Patient : IdentityUser
  {
      public DateTime DateOfBirth { get; set; }
      public Gender Gender { get; set; }
  }
  </code></pre>
  <p>I am just stuck after this.</p>
  <p>When I tried to add multiple Identitiy by the method <code>AddIdentity&lt;TUser, TRole&gt;()</code>, it gave me error.</p>
  <p>What do I do next?</p>
  <p>Most of the examples in the internet involves one <code>IdentityUser</code> and multiple <code>IdentityRole</code>. But since the user models are all different, I couldn't go that way.</p>
  <p>Thank you.</p>