Create database from entity framework codefirst approach in server

Binumon George 161 Reputation points

Hi All,
We are developing. netcore6 Web API using entity framework code first approach.
We planned to deploy it in windows azure.
How to create and deploy databases on servers? Using MySQL as database.
To deploy I published the application and put into Azure VM-Netput/wrote/Application folder.
Changed the connection string.
But when I try to access the Api get 500 errors.
What will be the reason?
Is this the correct way of publishing entity code first application?

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
713 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,520 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sam of Simple Samples 5,521 Reputation points

    Microsoft provides training modules for many things. For example see Create a web API with ASP.NET Core controllers - Training | Microsoft Learn. A database is typically created by a dotnet ef database update command.

    1 person found this answer helpful.
    0 comments No comments