

Open Package Manager Console and enter the following command at the prompt to create the entities and DbContext for the sakila database (adjust the connection-string values to match your settings for the user= and password= options): csproj file (version 2.0.3 in this example) : If this is an upgrade, remove the reference to that package from the. NET Core 2.1 SDK and not required or supported for EF Core 2.1.

version 1.1.6 (for EF Core 1.1) and version 2.0.3 (for EF Core 2.0) Manager Console or Manage NuGet Packages for Solution from the ToolsĪnd then NuGet Package Manager menu: ĮF Core 1.1 only: Also add the package. Install the following NuGet packages by selecting either Package The version (for example, -Version 8.0.13) must match the actual Connector/NET version you are using.

For example, use the following command to add the v8.0.13 package: Add the MySQL NuGet package for EF Core using the Package Manager Console.Open Visual Studio and create a new Console App (.NET Core) for C#.Scaffolding a Database Using Package Manager Console in Visual Studio Following the steps in this document helped me solve the problem.
