Settings for describing your basic database information and adding a DbContext to your Web API.
An object that describes the basic information for your database. At the moment, only one application DbContext is supported per API.
|DbContextName||Yes||A single key value pair that designates the name you want to use for your API.||None|
|DatabaseName||Yes||The name of your database.||None|
|Provider||No||An enumerator that designated the database provider for your DbContext.||SqlServer|
These are the valid options for the
You can still add MySql to your project manually. It has not been built in directly yet because, as of writing this, the MySQl nuget package is currently in pre-release for .NET 5, so you'll either want to add the prerelease or drop back to .NET Core 3.1 until it's ready.
In this example, we are creating a Sql Server database with a database name of
VetClinic and a DbContext of
DbContext: ContextName: VetClinicDbContext DatabaseName: VetClinic Provider: SqlServer