Migrations Asp Net MVC

0

I made a project first by feeding my application ASP.Net MVC to a SQL Server database that I set in the web.config (connectionString) file.

Then, following some courses I did, I started using Migrations to update the database tables. Problem is I'm checking that it is no longer looking at the table and database that are set in my web.config. I ran a test, deleted my connectionstring from my web.config file and the application keeps running and connecting to the database without any problems.

I'm not understanding where the database is set and what tables it is looking at, I realized it is no longer in my web.config file. You need to know to do some checks on the data in the SQL Server database.

    
asked by anonymous 22.02.2018 / 18:51

1 answer

0

When you do not specify a connection string, the Entity Framework creates an internally pointed to your LocalDB and with the name of the bank equal to your DbContext

Search on your (localdb)\MSSQLLocalDB a basis with the name in that format MinhaSolucao.MinhaAplicacao.Contexts.MeuDbContext

    
26.02.2018 / 15:13