title: Inherit from IdentityUser I get an error on UserManager<User>
body: <p>I'm developing a Web Api 2.2 application with .NET Framework 4.5.1 and Asp.Net Identity 2.1.0.</p>
  
  <p>I'm not sure what I'm doing, but I want to merge my database with ASP.NET Identity database and I have done this:</p>
  
  <p>My own <code>dbContext</code>.</p>
  
  <pre><code>public class EFDbContext : IdentityDbContext, IUnitOfWork
  </code></pre>
  
  <p>My own <code>User</code> class.</p>
  
  <pre><code>public class User : 
     IdentityUser&lt;long,
                  IdentityUserLogin&lt;long&gt;,
                  IdentityUserRole&lt;long&gt;,
                  IdentityUserClaim&lt;long&gt;
                 &gt;
  </code></pre>
  
  <p>But when I do this:</p>
  
  <p><code>UserManager&lt;User&gt; _userManager;</code></p>
  
  <p>I get this error:</p>
  
  <p>The type <code>Data.Models.User</code> cannot be used as parameter of type <code>TUser</code>. There isn't any explicit conversion from <code>Data.Models.User</code> to <code>Microsoft.AspNet.Identity.IUser&lt;string&gt;</code>.</p>
  
  <p>I'm doing this because I want to have <code>IdentityUser.Id</code> as <code>long</code> instead of <code>string</code>.</p>
  
  <p>How can I fix this error?</p>
  
  <p><strong>UPDATE</strong><BR/></p>
  
  <p>After updating UserManager with:</p>
  
  <pre><code>UserManager&lt;User, long&gt; _userManager;
  </code></pre>
  
  <p>I get the three errors here:</p>
  
  <pre><code>EFDbContext_ctx = context as EFDbContext;
  _userManager = new UserManager&lt;User, long&gt;(new UserStore&lt;User&gt;(_ctx));
  </code></pre>
  
  <blockquote>
    <ol>
    <li>The best match of method overload for 'Microsoft.AspNet.Identity.UserManager.UserManager (Microsoft.AspNet.Identity.IUserStore )' has some invalid arguments-</li>
    <li>The type 'Data.Models.User' cannot be used as parameter of type 'TUser' type or generic method
    'Microsoft.AspNet.Identity.EntityFramework.UserStore '. There is no conversion from implicit reference from 'Data.Models.User' to 'Microsoft.AspNet.Identity.EntityFramework.IdentityUser'.</li>
    <li>Argument 1: cannot be converted from 'Microsoft.AspNet.Identity.EntityFramework.UserStore' to 'Microsoft.AspNet.Identity.IUserStore'</li>
    </ol>
  </blockquote>
  
  <p>How can I fix this new error?</p>