I needed to using Microsoft.EntityFrameworkCore also (#3909)
parent
8b75ad2c67
commit
23246b16d9
|
@ -21,6 +21,7 @@ namespace RazorPagesMovie
|
|||
{
|
||||
// requires using RazorPagesMovie.Models;
|
||||
// and using Microsoft.Extensions.DependencyInjection;
|
||||
// and using Microsoft.EntityFrameworkCore;
|
||||
services.AddDbContext<MovieContext>(options =>
|
||||
options.UseSqlServer(Configuration.GetConnectionString("MovieContext")));
|
||||
services.AddMvc();
|
||||
|
|
Loading…
Reference in New Issue