A network-related or instance-specific error occurred while establishing a connection to SQL Server while migration with asp.net core migration

asp.net-core c# ef-migrations entity-framework-core sql-server

Question

I, am using package manager console to perform the database migration.

I used the following command

Add-Migration init

This command work perfectly and created the migration object as see in the below imagemigration image

Now I am using

Update-Database

command to create the database however I, am getting an error as shown below

error details

I have used the solution provide here and this question.

However, this solution is not working for me from visual studio.

I, am able to use the sql server from SSMS. This error is from visual studio.

Here is the firewall screen shot enter image description here

1
0
9/17/2017 7:26:40 AM

Popular Answer

This solution work for me.I change the statrtup.cs file as per the below repo

https://github.com/bricelam/Sample-SplitMigrations

Add migration with different assembly

0
9/18/2017 2:32:38 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow