C
Christine25
Guest
Hi, I'm working on C# ASP.Net MVC, still a newbie... and want to know the meaning of these below lines.
I usually use it without knowing what exactly it does... and today want to know what it is.
When I create default Microsoft template for ASP.Net MVC then I got these.
also, is there another way to make it?
Seems lile the last line is a property as I can see (set/get) !!! not sure.
public AccountController()
: this(new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext())))
{
}
public AccountController(UserManager<ApplicationUser> userManager)
{
UserManager = userManager;
}
public UserManager<ApplicationUser> UserManager { get; private set; }
Continue reading...
I usually use it without knowing what exactly it does... and today want to know what it is.
When I create default Microsoft template for ASP.Net MVC then I got these.
also, is there another way to make it?
Seems lile the last line is a property as I can see (set/get) !!! not sure.
public AccountController()
: this(new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext())))
{
}
public AccountController(UserManager<ApplicationUser> userManager)
{
UserManager = userManager;
}
public UserManager<ApplicationUser> UserManager { get; private set; }
Continue reading...