title: Unit of Work with Identity on ASP.NET Core
body: <p>I'm creating web api for a mobile application, I need when user registering add the data to database, I want to add the data to multiple tables</p>
  <p>My User table design :</p>
  <ul>
  <li>AspnetUsers : Default identity table</li>
  <li>StudentUsers: The second table of user detail</li>
  <li>TeacherUsers: Third table for user</li>
  </ul>
  <p>When on registering, user selecting which they're student or teacher.
  The problem here is, there is two table when registering, I want to use Unit of Work for that situation, to prevent data saving fails. If data fails not to add the data to other table.</p>
  <p>But how can I implement this into identity?</p>