ASP.net Identity Custom Tables using OwinContext
问题 I'm trying to implement custom tables to store users/roles etc. in a SQL server DB using Entity framework 6. I've create a base DbContext that derives from IdentityDbContext public class MainContext : IdentityDbContext<ApplicationUser> { public MainContext() : base("name=Main") { } public static MainContext Create() { return new MainContext(); } } I also have a custom user class that inherits IdentityUser public class ServiceUser : IdentityUser{ } In the ConfigureAuth the defualt code was: