Search code examples
c#asp.netasp.net-mvc-scaffoldingasp.net-core-scaffolding

Where does ASP.NET core put automatically created Databases?


I am following an MVC tutorial on ASP.NET core and currently created a movie database application using scaffolding.

The application can create and display movies entries but I can't locate the database in my MSSMS.is it hidden? I have looked into the system database table with no luck. I know the database exists because the application can persist the data. Tutorial Link https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/adding-model?view=aspnetcore-5.0&tabs=visual-studio


Solution

  • It is saved to a SQL Server Express LocalDB instance, using the connectionstring in appsettings.json.

    You can connect to it with SSMS using this server name: (localdb)\mssqllocaldb