Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Membership Provider Role Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Windows Communication Foundation (WCF)
Divers
Thread ID:
01468883
Message ID:
01468995
Vues:
30
>>>>How would you update a role? I'm looking at SqlRoleProvider, and I don't see any way to update a role. There's a CreatRole and DeleteRole, but no update.
>>>
>>>What did you want to update. IIRC adding and removing users were all that I needed and there are methods for that. Changing other properties shouldn't really be neccessary ?
>>
>>Assume that you enter a role, then realize it's misspelled. How would you change that? The RolerProvider only has Create and Delete.
>
>If nothing else, you can change it under the hood in the SQL database that has the security tables.

I just had this discussion with another developer here at work, and we agreed that the only time you would ever do this is in a security administration environment, not in the actual implementation of it, so it's ok to Delete and Create for renaming.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform