doubts about localDB in MVC applications C #

3

I made a post here about where the application stores information from the Register template that comes in MVC applications when we create a new project. Well, the question would be:

In order to use this information, to work with them, I would have to open the localDB, but here comes the question. In a web environment, I host my website on a server. When the user registers there, how can I get this information? The localDB name, gives idea that the information is on the client machine, so I would not know how to get this information, right?

I know some will say "create a registration for you and etc", but I just want to understand.

    
asked by anonymous 27.05.2015 / 17:48

2 answers

2

The localDB name, gives an idea that the information is on the client machine, so I would not know how to get this information, right?

Wrong. LocalDb is a version of SQL Server that works on the same machine as the application, that is, on the server .

The only peculiarity of it is that you do not need to install an entire instance of SQL Server to start your application. It's one step less, in order to make development simpler.

This idea of "place" I understand that it brings a feeling that the bank is in the client, but it is not quite that. It tries to be a local development alternative, just like SQLite.

When the user registers there, can I get this information?

See now this question does not make much sense. The truth is that the type of access to a LocalDb database is identical to the type of access to a SQL Server server.

    
13.07.2015 / 18:43
0

If I understood your question the answer is NO, the name of the bank does not change anything. if you create a database on a SQL server and point your application to that database, anyone accessing your application will use the same database.

    
13.07.2015 / 18:25