What problem does it solve?
This Skill provides a structured approach to managing PostgreSQL databases in .NET projects using Entity Framework Core, migrations, and robust transaction handling. It helps teams maintain schema evolution, optimize queries, and ensure reliable connections in production workloads.
Core Features & Use Cases
- EF Core setup with PostgreSQL provider and retry strategies.
- Migrations and scripts for safe schema evolution.
- Indexing strategies and performance optimization.
- Transactions for multi-step operations with rollback safety.
- Connection pooling and resource management for scalable apps.
- Repository pattern and best practices for data access.
Quick Start
dotnet new console -n DemoApp
cd DemoApp
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL
dotnet ef migrations add InitialCreate
dotnet ef database update
dotnet ef migrations script --output migration.sql
// Example project scaffold and commands to bootstrap the workflow.