在什么地方MVC3默认模板存储用户账户信息?什么地方、账户、模板、用户

2023-09-04 02:42:27 作者:一个人的荒凉o

你能告诉我哪里有asp.net MVC3默认模板存储的登录信息,当我注册一个新账号?它是运行在本地调试模式。

Can you tell me where the asp.net mvc3 default template stores the login information when I register a new account? It is running local in debug mode.

无需安装SQLEx preSS,寄存器功能并没有在所有的工作。由于我已经安装了它,我可以使用注册/登录功能,但我无法找到表中SQLEx preSS,其中这类数据的存储。有主,模型,MSDB和tempdb中SQLEx preSS这是系统数据库。

Without having installed SQLExpress, the register function did not work at all. Since I have installed it, I can use the register/login function, but I can't find the table in SQLExpress where this kind of data is stored. There are master, model, msdb and tempdb in SQLExpress which are system databases.

您能帮我吗?谢谢!

推荐答案

看看在 web.config中。

<membership>
      <providers>
        <clear/>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
             enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
             maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
             applicationName="/" />
      </providers>
    </membership>

于是插在会员供应商是的SqlMembershipProvider ,使用一个被称为连接字符串的 ApplicationServices 的:

So the plugged in membership provider is SqlMembershipProvider, using a connection string called ApplicationServices:

<connectionStrings>
    <add name="ApplicationServices"
         connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
         providerName="System.Data.SqlClient" />
  </connectionStrings>

所以,如果你在的App_Data 在项目中(文件系统),你会看到一个名为 ASPNETDB.MDF 的,这是在您的用户存储。

So if you look in App_Data in your project (file system), you'll see a file called aspnetdb.mdf, which is where your users are being stored.

下面是关于SQL Server的防爆preSS一些更多的信息。