Following this Microsoft Tutorial when I run the PM> Add-Migration MyFirstMigration
command in VS2015 project created from the same tutorial I get the following error that I can't resolve:
More than one DbContext was found. Specify which one to use.
Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands.
Point to note
Individual User Account
authentication instead of No Authentication
used in the tutorial.ASP.NeT Core 1.0 and VS2015-Update 3 on windows 8.1
Running the following command (obtained from this article) and a response from @Maverik (from StackOverflow here) and a suggestion from @doctor above helped me resolved the issue. Thank you all for your help:
PM> Add-Migration MyFirstMigration -Context BloggingContext