0

I had an application that was working fine, I just put it on a new computer, but I get

There is already an object named 'Servicio' in the database

On management studio the database doesn´t exists. When I try

Add-Migration Initial -IgnoreChanges

I get No parameter found matching parameter name 'IgnoreChanges'

************************ UPDATE *************************

Turns out that I was connecting to another instance of Sql server

  "AllowedHosts": "*",
  "ConnectionStrings": {
    "ConnectionString": "Data Source=DESKTOP-ARVMMP2\\SQLEXPRESS;Initial catalog=calculadora_laboral2;Integrated Security=true"
  }

On management studio I was connecting to only

DESKTOP-ARVMMP2

But I still get

There is already an object named 'Servicio' in the database.
Jhon
  • 67
  • 7

0 Answers0