What problem does it solve?
Provides clear, production-ready guidance to avoid migration failures, runtime LINQ surprises, and misconfigured DbContext registrations when using EF Core with the Pomelo MariaDB provider.
Core Features & Use Cases
- Provider setup and recommended NuGet packages for .NET projects using Pomelo.EntityFrameworkCore.MySql.
- Migration workflow and naming conventions to add, apply, rollback, and safely manage schema changes.
- Startup auto-migrate guidance and a critical warning to prefer db.Database.Migrate() over EnsureCreated().
- Workarounds for the Linux LINQ ReadOnlySpan/Contains runtime bug and guidance to use List<string> collections in queries.
- Service layer patterns, domain exception mappings to HTTP statuses, and testing recommendations using an in-memory database.
Quick Start
Add a migration named InitialCreate to the project and apply it to the database using the Pomelo MariaDB provider.