Asp.net Profile Provider Search by specific object

I am using the SqlProfileProvider class in one of my projects and I would like to be able to search for profiles in an arbitrary profile (e.g. Birthday).

The only search method I've seen is ProfileManager.FindByUserName.

Has anyone implemented this? Or do I need to iterate over the list of profiles (very inefficient) and filter?

+2


source to share


1 answer


If you are going to use provider mechanisms, your only option is to iterate over the profiles.



However, you can of course recommend your own method for searching on other properties. Instead of calling ProfileManager.FindByBirthday, you simply call your method directly from your custom class.

0


source







All Articles