UseSqlServer method missing MVC 6

UseSqlServer is an extension method in the namespace Microsoft.Data.Entity so you need to import that in your code, like this:

using Microsoft.EntityFrameworkCore;

Install Microsoft.EntityFrameworkCore.SqlServer 1.0.1 package works for me Version of Microsoft.EntityFrameworkCore is 1.1.0


Since this has been posted, assemblies have been renamed. As part of EntityFrameworkCore you now need to add a using statement the following

using Microsoft.EntityFrameworkCore;

And the .UseSqlServer extension method to configure your context will become available