onsdag 2 maj 2007

MembershipProvider for MySql in .NET 2.0

In version 2.0 of the .NET framework there is built in support for role based membership. The users are stored in either a database or another data provider such as XML files. Everything is accessed trough a MembershipProvider.

The default MembershipProvider in .NET only works with SQL Server or SQL Express, but you can override the classes and methods to support your own data provider.

I have written an article (in swedish) on the Pellesoft web site about this, and also how you can extend the MembershipUser class to implement your own properties such as first and last name.

The article:
http://www.pellesoft.se/area/articles/article.aspx?artid=975

The original classes comes from www.sprinj.com where you can find the basic solution in english.

Inga kommentarer: