Problems with Migration

0

I'm developing an application using DDD architecture. In my Infra layer, I have my data models, all based on Code First . I'm trying to use MySql as a database. I have already installed everything that was needed ( EF , MySqlConnector ) and more that are needed.

It turns out that when I try to apply Migration I get the error:

Case 1: When I apply Add-Migration

PM> Add-Migration
cmdlet Add-Migration na posição de comando 1 do pipeline
Forneça valores para os seguintes parâmetros:
Name:

What should be provided for this "Name":

Case 2: When I supply the name of the database that appears in ConnectionString

OBS: I provide such value because I do not know what should be passed as explained above.

The specified framework version '2.0' could not be parsed
The specified framework 'Microsoft.NETCore.App', version '2.0' was not found.
  - Check application dependencies and target a framework version installed at:
      C:\Program Files\dotnet\
  - Installing .NET Core prerequisites might help resolve this problem:
      http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
  - The .NET Core framework and SDK can be installed from:
      https://aka.ms/dotnet-download
  - The following versions are installed:
      1.0.11 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      1.0.12 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      1.1.8 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      1.1.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.0.3 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.0.7 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.1.2 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.1.4 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

How to solve such a problem?

Thanks in advance for your attention.

    
asked by anonymous 25.09.2018 / 14:57

0 answers