ASP.NET Membership Provider - Remove Unwanted Profile Properties

/ Published in: C#
Save to your folder(s)

I removed several properties from my custom Profile class, and wanted to clean out the data from the aspnet\_Profile table. This code will remove all unwanted data from the PropertyNames and PropertyValuesString columns of aspnet\_Profile. Note this assumes PropertyValuesBinary is not used, though it wouldn't be hard to support that too.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.