Template MVC 5 or other: initial form of users, information, database

4

The templates that come in VS2013 or any other version when starting a project, it builds a menu with: Home , Contact >, Register and Login .

I ask: How does it save the information for the new default user records? Where is it stored?

    
asked by anonymous 22.05.2015 / 15:20

1 answer

1
  

I had to adjust the original question to answer because the question did not make sense, given the author's original doubt. I will keep the answer with the original version and the changes below for historical reasons, since the meaning of the question has completely changed with the edition. For the purpose of the answer, please consider only the second section, "where the data is stored."

Where are the Visual Studio templates?

templates are usually here:

  C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ ItemTemplates

There the directories are divided by design pattern. For example, C # web projects stay here:

  C: \ Program Files \ x86 \ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ ItemTemplates \ CSharp \ Web

.vstemplate files are XML files. You can open them in your preferred text editor.

There are also the .tt and .t4 files, which are transformation template files. They are used for the Scaffolding technique . I wrote this article on Scaffolding explaining the general principle .

Where are user information stored in applications generated by template in Visual Studio initially?

For ASP case .NET Identity, I replied here . Also true for Membership.

For the previous generation of Web Forms era forms (called Simple Membership), there were two ways:

That is, for Membership and newer technologies, the default is a .mdb file within the App_Data directory of your own project. For older technologies, it depends.

    
22.05.2015 / 19:13