ASP.NET MVC4 WebSecurity - database storage location

I just installed MVC 4 and made a default internet project. I was able to create a username / password for login / change.

In MVC 3, after creating the user, I will see the ASPNETDB.MDF file in the App_Data folder, and I will also be able to manage users / roles in the Website Administration Tool.

with MVC 4, I do not see the ASPNETDB.MDF file, even if I click show all files. In addition, all new users are not displayed in the Website Administration Tool.

Is there anywhere else that I can find to download users / roll sets?

thank

+5
source share
5 answers

, " -" MVC4

Models AccountModeles.cs.

,

public UsersContext()
            : base("DefaultConnection")
        {
        }  

web.config . DefaultConnection. , /.

+2

, , , App_Data. , ?

.MDF , Visual Studio. , .

+1

MVC 4 -, WebMatrix.

0

- MVC 4, SimpleMembership, ASPNETDB.MDF. App_Data, aspnet- -99999999999.mdf, " " - VS, , , , , / , , . -. SimpleMembership .

0

Open the web.config file in your solution to check where and by what name the mdf file is created.

You can find information about it in the configuration file:

</configSections>
  <connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source= ******>

With this, you can open the corresponding database on the SQL server to check the information you were looking for

0
source

All Articles