Table of Contents

Configure the Database

The backend API application owns the RecroGrid Framework server-side data-access layer. Configure its database connection and Entity Framework integration before configuring authentication and the browser-facing Blazor application.

The server-side application model uses the same RecroGrid Framework database and Entity Framework foundations as the other application models.

Use these data-access references for the complete configuration options:

For most applications, the main decisions here are:

  • Which connection string the backend API uses as the default RecroGrid Framework connection.
  • Whether the generated BaseDbContext is sufficient or a custom DbContext should own the integration.
  • How the database is initialized before the application is used.

At this point in the workflow, the solution has the server-side foundation in place:

Backend API
├── RecroGrid Framework server runtime
├── Entity Framework
├── DbContext
└── Database connection
        ↓
    Database

Next step