Sunday, 30 December 2012 19:54

how to autogenerete membership tables using membership provider

Written by 
Rate this item
(0 votes)

we know how to use asp.net membership provider.
most of the time we create membership tables
manualy.But those tables can be created
automatically by adding a line in the membership
provider configuration in web.config file.

the following way we can generate schema's
automatically.here i used MySql membership provider
-
<membership defaultProvider="MySQLMembershipProvider">
<providers>
<clear />
<add connectionStringName="LocalMySqlServer"
applicationName="/" requiresUniqueEmail="false"
passwordFormat="Clear" maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7" name="MySQLMembershipProvider"
autogenerateschema="true"
type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web,
Version=6.2.4.0, Culture=neutral,
PublicKeyToken=c5687fc88969c44d" />
</providers>
</membership>

autogenerateschema="true" enables generating tables
automatically.

Read 2678 times
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.

Latest discussions

  • No posts to display.