Imagine you are developing an e-commerce website using ASP.NET Core. After a user completes their first purchase, you want to programmatically create an account for them using the email they provided. Which class and method in ASP.NET Core Identity would be most suitable for this?
- UserManager
.CreateAsync() - SignInManager
.PasswordSignInAsync() - RoleManager
.CreateAsync() - UserStore
.CreateAsync()
You would use UserManager.CreateAsync() to programmatically create a user account in ASP.NET Core Identity. This method allows you to create a new user with the provided email and other necessary information.
Loading...
Related Quiz
- Which attribute would be used to enforce that a specific route parameter should be of type integer?
- In an ASP.NET Core MVC application for a library, where would the information about available books and their details be stored?
- Which tool would you use for building, running, and managing .NET applications without an IDE?
- Which tool among the following is primarily a command-line tool for .NET operations?
- If you want to enforce that passwords must contain a non-alphanumeric character in ASP.NET Core Identity, which property should you set?