更新时间:2023-02-25 22:11:38
对于希望在MVC上支持"身份的任何人,我建议采用以下方法:
For anyone that wants to "scaffold" identity on MVC, I recommend the following approach:
转到官方身份ASP.net Github存储库( https://github.com/aspnet/Identity)并下载.打开解决方案并搜索IdentitySample.Mvc项目.将必要的文件复制到您的项目中.
Go to the official identity ASP.net Github Repository (https://github.com/aspnet/Identity) and download it. Open the solution and search for the IdentitySample.Mvc project. Copy the necessary files to your project.
重要说明:不要忘记更改所添加文件的名称空间,因为它们属于不同的项目.
Important Note: Don't forget to change the namespace on the added files since they belong to a different project.