Reputation: 31
Enable-Migrations -ProjectName SampleApplication -ContextTypeName MyDbContext
I have given the above command but it's not working? To Enable Migration Which Command need to Apply?
Upvotes: 3
Views: 15042
Reputation: 237
Migrations are enabled by default in EF Core but you have to install
Microsoft.EntityFrameworkCore.Tools
nuget package. It looks like that package isn't installed by default with EF Core.
Upvotes: 9