Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Migrate and Update Database from C#

$
0
0

I have developed a simple ASP.Net Core 2 website in visual studio using the local database using EF Core. Now I want to publish the site to a remote host.

I can't run "migrate-database" and "update-database" on the remote host. How and where should I implement the migration and update in the C# code to make it work on the remote host?

I have been searching the internet for the solution, but I can't find any solution that simply updates the database...


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>