I needed to using Microsoft.EntityFrameworkCore also (#3909)

pull/3912/head
Scott Hanselman 2017-08-08 07:42:18 -07:00 committed by Rick Anderson
parent 8b75ad2c67
commit 23246b16d9
1 changed files with 1 additions and 0 deletions

View File

@ -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();