hello,
I created asp.net identity classes like this:
namespace NewApp.Identity
{
public class StoreUser : IdentityUser
{
// application-specific properties go here
}
public class StoreRole : IdentityRole
{
public StoreRole() : base() { }
public StoreRole(string name) : base(name) { }
}
public class StoreIdentityDbContext : IdentityDbContext<StoreUser>
{
public StoreIdentityDbContext()
: base("DefaultConnection")
{
Database.SetInitializer<StoreIdentityDbContext>(new
StoreIdentityDbInitializer());
}
public static StoreIdentityDbContext Create()
{
return new StoreIdentityDbContext();
}
}
public class StoreUserManager : UserManager<StoreUser>
{
public StoreUserManager(IUserStore<StoreUser> store)
: base(store) { }
...
Go to the complete details ...