doubts about localDB in MVC C#

Asked

Viewed 83 times

3

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

If I wanted to use this information, to work with it, I would have to open localDB, but here comes the question. In a web environment, I host my site on a server. When the user registers there, do I have a way to get this information? The name localDB, gives idea that the information is in the client machine, therefore, there would be no way to get this information, right?

I know some of you will say, "create a record for yourself and so on," but I just want to understand.

2 answers

2

The name localDB, gives idea that the information is in the client machine, therefore, there would be no way to get this information, right?

Wrong. Localdb is a version of SQL Server that works on the same machine as the application, i.e., 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 is one step less, in order to make development simpler.

This idea of "local" I understand that brings a feeling that the bank stays in the customer, but that’s not quite it. It tries to be a local development alternative, just like Sqlite is.

When the user registers there, I have how to get this information?

Now that question doesn’t make much sense. The truth is that the type of access to a Localdb database is identical to the type of access to an SQL Server.

0

If I understand your question the answer is NO, the name of the bank doesn’t change anything. if you create a database on an SQL server and point your application to that database, anyone who accesses your application will use the same database.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.