what is the command to update database in mssqlserver in code first in asp.net core code example
Example 1: how asp.net core works with sql server
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
services.AddDbContext<RazorPagesMovieContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("RazorPagesMovieContext")));
}
Example 2: ef migrations
PM> add-migration MyFirstMigration
PM> Update-Database