开发者

How do people deal with asp.net membership/role/profile in real website?

开发者 https://www.devze.com 2023-02-02 01:47 出处:网络
I don\'t like asp.net profile provider store all profile info in one or two row in the database, but I want to use membership/profile API for authentication purpose.

I don't like asp.net profile provider store all profile info in one or two row in the database, but I want to use membership/profile API for authentication purpose.

Customize membership/role/profile provider requires big big upfront efforts, which may cause more mess later.

开发者_StackOverflow

So how do people deal with that normally?


You don't have to use asp.net profiles to store additional information if you don't want to. Instead you can store it in a separate table and link it to aspnet_Users table like shown here: Storing additional information


  1. You can use the built-in SqlMembershipProvider, which is installed by running aspnet_regsql.exe.

  2. You do not have to use profiles if you don't like them.

  3. Customizing membership/role/profile providers is really not that big of a deal.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号