Tag: entity-framework-core

65 votes
21 answers
1.8K views
The term "Add-Migration" is not recognized

I'm using this MSDN Tutorial to run in VS2015 the command PM> Add-Migration MyFirstMigration -context

avatar
Hallie
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
1K views
Entity Framework Core: DbContextOptionsBuilder does not contain a definition for 'usesqlserver' and no extension method 'usesqlserver'

I am new to EF core and I'm trying to get it to work with my ASP.NET Core project. I get the above error

avatar
Venice
0 1 0 9
asked 07 September, 2021
52 votes
18 answers
2.8K views
How to unapply a migration in ASP.NET Core with EF Core

When I run PM> Remove-Migration -context BloggingContext in VS2015 with an ASP.NET Core project using EF Co

avatar
Scot
0 1 0 9
asked 07 September, 2021
52 votes
14 answers
1.6K views
Command dotnet ef not found in .NET Core 3

I'm following the docs in order to create an initial migration. When I execute dotnet, I get the help sec

avatar
Rudolf
0 1 0 9
asked 07 September, 2021