Using a soft user experience, the right management method
One. Using the configured repositories,
1. First set up the library you want (just fill in the name without downloading any tables, such as: Login repository)
2. Use the VS Compatibility tool command prompt. Image:
3. Table required to guide the repository
A. Use the tool command prompt just opened, and write the code aspnet_regsql
B. Open the following window after the configuration
Note that the position of the arrows above should be the same as the previous, or pre-prepared, library.
Then the next step and finish is OK.
Table in the repository after configuration
To the current location, the configuration of the repository has been completed, the following is the use of
Two. Editing the configuration file
<configuration>
<connectionStrings> <add name="defaultconnection"connectionstring="server=.; Database=mydb;uid=sa;pwd=123"Providername="System.Data.SqlClient"/> </connectionStrings> <system.web> <profile defaultprovider="Defaultprofileprovider"> <providers> <add name="Defaultprofileprovider"Type="System.Web.Providers.DefaultProfileProvider"Connectionstringname="defaultconnection"Applicationname="/"/> </providers> </profile> <membership defaultprovider="AspNetSqlMembershipProvider"> <providers> <clear/> <Add Name="AspNetSqlMembershipProvider"type="System.Web.Security.SqlMembershipProvider, system.web, version=2.0.3600.0, Culture=neutral, publickeytoken= B03F5F7F11D50A3A"connectionStringName="defaultconnection"enablePasswordRetrieval="false"enablePasswordReset="true"requiresQuestionAndAnswer="false"requiresUniqueEmail="true"maxinvalidpasswordattempts="3"minRequiredPasswordLength="6"minRequiredNonalphanumericCharacters="0"passwordAttemptWindow="Ten"ApplicationName="/"/> </providers> </membership> <rolemanager enabled="true"Cacherolesincookie="true"> <providers> <clear/> <add connectionstringname="defaultconnection"Applicationname="/"Name="AspNetSqlRoleProvider"Type="System.Web.Security.SqlRoleProvider, system.web, version=2.0.0.0, Culture=neutral, publickeytoken= B03F5F7F11D50A3A"/> </providers> </roleManager> <compilation debug="false"targetframework="4.0"/> </system.web></configuration>
Copy the above codes to
. NET use of micro-software to verify and log the license