开发者

Asp.net MVC Why should I bother with a Profile Provider?

开发者 https://www.devze.com 2022-12-17 07:47 出处:网络
I already have a database with about 20 fields of userprofile information. Im not sure what the advantage would be for creating a custom provider开发者_开发问答 instead. Can someone explain what is th

I already have a database with about 20 fields of userprofile information. Im not sure what the advantage would be for creating a custom provider开发者_开发问答 instead. Can someone explain what is the benefit? thanks.


There may not be any benefit for you.

Profiles allow you to manage user information without requiring you to create and maintain your own database.

You've already got that covered, so the only other major advantage that I can think of is that profiles provide are an easy way of handling migration of anonymous usage data to the user's profile when they log in. There are events that you can hook into for handling that with any profile provider, whether it's custom or not.

A solid read through the documentation on profiles might help you decide if there is any advantage for your app.

0

精彩评论

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

关注公众号