Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 135 characters in body
Source Link
Ehsan Ullah Nazir
  • 1.9k
  • 1
  • 15
  • 21

As error says

Someone added already added an object Currency in DB

Seems there is a problem in migration process.

You can try following solution if they helps.

Run add-migration command in "Package Manager Console":

Add-Migration First -IgnoreChanges

do some changes, and then update database from "Initial" file:

Update-Database -verbose

If you are working on a Team Project. I will suggest you to set AutomaticMigrationsEnabled to false

AutomaticMigrationsEnabled = false;

It will ensure unpredictable migrations and make sure that every developer on the team works with the same data base structure.

You can also try

Update-Database -Script for update a database manually. And you can exclude 'Currency' from resulting script

As error says

Someone added already added an object Currency in DB

Seems there is a problem in migration process.

You can try following solution if they helps.

Run add-migration command in "Package Manager Console":

Add-Migration First -IgnoreChanges

do some changes, and then update database from "Initial" file:

Update-Database -verbose

If you are working on a Team Project. I will suggest you to set AutomaticMigrationsEnabled to false

AutomaticMigrationsEnabled = false;

It will ensure unpredictable migrations and make sure that every developer on the team works with the same data base structure.

As error says

Someone added already added an object Currency in DB

Seems there is a problem in migration process.

You can try following solution if they helps.

Run add-migration command in "Package Manager Console":

Add-Migration First -IgnoreChanges

do some changes, and then update database from "Initial" file:

Update-Database -verbose

If you are working on a Team Project. I will suggest you to set AutomaticMigrationsEnabled to false

AutomaticMigrationsEnabled = false;

It will ensure unpredictable migrations and make sure that every developer on the team works with the same data base structure.

You can also try

Update-Database -Script for update a database manually. And you can exclude 'Currency' from resulting script

added 108 characters in body
Source Link
Ehsan Ullah Nazir
  • 1.9k
  • 1
  • 15
  • 21

As error says

Someone added already added an object Currency in DB

Seems there is a problem in migration process, run.

You can try following solution if they helps.

Run add-migration command in "Package Manager Console":

Add-Migration First -IgnoreChanges

do some changes, and then update database from "Initial" file:

Update-Database -verbose

You can try by settingIf you are working on a Team Project. I will suggest you to set AutomaticMigrationsEnabled to false

AutomaticMigrationsEnabled = false; 

AutomaticMigrationsEnabled = false;

It will ensure unpredictable migrations and make sure that every developer on the team works with the same data base structure.

Seems there is a problem in migration process, run add-migration command in "Package Manager Console":

Add-Migration First -IgnoreChanges

do some changes, and then update database from "Initial" file:

Update-Database -verbose

You can try by setting AutomaticMigrationsEnabled to false

AutomaticMigrationsEnabled = false; 

As error says

Someone added already added an object Currency in DB

Seems there is a problem in migration process.

You can try following solution if they helps.

Run add-migration command in "Package Manager Console":

Add-Migration First -IgnoreChanges

do some changes, and then update database from "Initial" file:

Update-Database -verbose

If you are working on a Team Project. I will suggest you to set AutomaticMigrationsEnabled to false

AutomaticMigrationsEnabled = false;

It will ensure unpredictable migrations and make sure that every developer on the team works with the same data base structure.

added 108 characters in body
Source Link
Ehsan Ullah Nazir
  • 1.9k
  • 1
  • 15
  • 21

Seems there is a problem in migration process, run add-migration command in "Package Manager Console":

Add-Migration InitialFirst -IgnoreChanges

do some changes, and then update database from "Initial" file:

Update-Database -verbose

You can try by setting AutomaticMigrationsEnabled to false

AutomaticMigrationsEnabled = false; 

Seems there is a problem in migration process, run add-migration command in "Package Manager Console":

Add-Migration Initial -IgnoreChanges

do some changes, and then update database from "Initial" file:

Update-Database -verbose

Seems there is a problem in migration process, run add-migration command in "Package Manager Console":

Add-Migration First -IgnoreChanges

do some changes, and then update database from "Initial" file:

Update-Database -verbose

You can try by setting AutomaticMigrationsEnabled to false

AutomaticMigrationsEnabled = false; 
Source Link
Ehsan Ullah Nazir
  • 1.9k
  • 1
  • 15
  • 21
Loading