filmov
tv
ASP.NET Core Identity 3.1 | Scaffold identity ⚡️
Показать описание
ASP.NET Core Identity vienes con un conjunto de páginas (Iniciar sesión ,Cambiar Contraseña etc) que vienen en una Razaor Class Library. De forma inicial no son visibles y necesitas realizar el proceso conocido como Scaffold- Para ello necesitas instalar una herramienta globla llamada
Para porder ver los archivos de las páginas Razor de ASP.NET Core Identity}
dotnet tool install --global dotnet-aspnet-codegenerator
Tambien se requiere tener instalado el paquete de Nuget
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
Para desinstalar la herramiento de generación de código
dotnet tool uninstall --global dotnet-aspnet-codegenerator
dotnet aspnet-codegenerator identity -dc IntroIdentity.Data.ApplicationDbContext -sqlite --files "Account._StatusMessage;Account.AccessDenied;Account.ConfirmEmail;Account.ConfirmEmailChange;Account.ExternalLogin;Account.ForgotPassword;Account.ForgotPasswordConfirmation;Account.Lockout;Account.Login;Account.LoginWith2fa;Account.LoginWithRecoveryCode;Account.Logout;Account.Manage._Layout;Account.Manage._ManageNav;Account.Manage._StatusMessage;Account.Manage.ChangePassword;Account.Manage.DeletePersonalData;Account.Manage.Disable2fa;Account.Manage.DownloadPersonalData;Account.Manage.Email;Account.Manage.EnableAuthenticator;Account.Manage.ExternalLogins;Account.Manage.GenerateRecoveryCodes;Account.Manage.Index;Account.Manage.PersonalData;Account.Manage.ResetAuthenticator;Account.Manage.SetPassword;Account.Manage.ShowRecoveryCodes;Account.Manage.TwoFactorAuthentication;Account.Register;Account.RegisterConfirmation;Account.ResetPassword;Account.ResetPasswordConfirmation"
Para porder ver los archivos de las páginas Razor de ASP.NET Core Identity}
dotnet tool install --global dotnet-aspnet-codegenerator
Tambien se requiere tener instalado el paquete de Nuget
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
Para desinstalar la herramiento de generación de código
dotnet tool uninstall --global dotnet-aspnet-codegenerator
dotnet aspnet-codegenerator identity -dc IntroIdentity.Data.ApplicationDbContext -sqlite --files "Account._StatusMessage;Account.AccessDenied;Account.ConfirmEmail;Account.ConfirmEmailChange;Account.ExternalLogin;Account.ForgotPassword;Account.ForgotPasswordConfirmation;Account.Lockout;Account.Login;Account.LoginWith2fa;Account.LoginWithRecoveryCode;Account.Logout;Account.Manage._Layout;Account.Manage._ManageNav;Account.Manage._StatusMessage;Account.Manage.ChangePassword;Account.Manage.DeletePersonalData;Account.Manage.Disable2fa;Account.Manage.DownloadPersonalData;Account.Manage.Email;Account.Manage.EnableAuthenticator;Account.Manage.ExternalLogins;Account.Manage.GenerateRecoveryCodes;Account.Manage.Index;Account.Manage.PersonalData;Account.Manage.ResetAuthenticator;Account.Manage.SetPassword;Account.Manage.ShowRecoveryCodes;Account.Manage.TwoFactorAuthentication;Account.Register;Account.RegisterConfirmation;Account.ResetPassword;Account.ResetPasswordConfirmation"
Комментарии