G
G
GineTik2021-07-01 22:16:05
Entity Framework
GineTik, 2021-07-01 22:16:05

EF is not connecting to the correct server, why?

Hello, I have a project in which a local database was made using EF

Now I want to upload this database to the hosting, I took the connection string that was offered there and I got this

<connectionStrings>
    <add name="PostDataBase"
         connectionString="Data Source=SQL5101.site4now.net;Initial Catalog=*****;User Id=*****;Password=*****"
         providerName="System.Data.SqlClient"/>
  </connectionStrings>


all passwords and the rest are written correctly

When update-database -verbose writes this
Target database is: 'PostDataBase' (DataSource: (localdb)\mssqllocaldb, Provider: System.Data.SqlClient, Origin:

as I understand it, it takes not what I wrote, but what is above and because of this it does not work

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question