An object that describes the basic information for your database. At the moment, only one application DbContext is supported per API.
Name | Required | Description | Default |
---|---|---|---|
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 Provider
property:
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 VetClinicDbContext
.
DbContext:
ContextName: VetClinicDbContext
DatabaseName: VetClinic
Provider: SqlServer
👀 Docs Feedback
See something missing or light in content in the docs? Let me know! I want the Wrapt docs to be as through and helpful as possible!
If you'd like to request a new feature, you can submit a new Craftsman issue.