gpt4 book ai didi

c# - 如何向 ASP.NET 上的帐户添加不同的属性?

转载 作者:行者123 更新时间:2023-12-03 03:11:55 25 4
gpt4 key购买 nike

所以我正在遵循本教程: https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-deploy-aspnet-mvc-app-membership-oauth-sql-database/#create-an-aspnet-mvc-5-application

我想知道如何向帐户添加更多内容?就像我注册时要求输入电子邮件和密码一样,但我如何添加名称字段(当然还有数据库存储)?

最佳答案

您可以使用配置文件变量。

来自 MSDN

In many applications, you want to store and use information that is unique to a user. When a user visits your site, you can use the information you have stored to present the user with a personalized version of your Web application. Personalizing an application requires a number of elements: you must store the information using a unique user identifier, be able to recognize users when they visit again, and then fetch the user information as needed. To simplify your applications, you can use the ASP.NET profile feature, which can perform all of these tasks for you.

Introduction to Membership

ASP.NET Profile Properties Overview

关于c# - 如何向 ASP.NET 上的帐户添加不同的属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36234295/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com