Right-click on the Movie table > View Data By default, EF makes a property named ID the primary key. Right-click on the Movie table > View Designer For local development, it gets the connection string from the appsettings.json file: 'ConnectionStrings': directory.įrom the View menu, open SQL Server Object Explorer (SSOX). The ASP.NET Core Configuration system reads the ConnectionString key. Options.UseSqlServer(('MvcMovieContext')))
Var builder = WebApplication.CreateBuilder(args)