16 practical guides
Database Guides for .NET
Start by choosing a database and configuring one connection pool. Then follow the path for the problem you have: slow queries, or concurrent writes that must stay correct. Most examples use PostgreSQL with Npgsql, EF Core, or Dapper.
Start here
PostgreSQL vs SQL Server for .NET Developers
SQL Server used to be the default database for .NET, but the .NET-on-Postgres stack is now mainstream. Here is a feature-by-feature comparison of what changes in your code, operations, and costs.
Read the complete guide →Explore Databases
Browse all .NET guides →Choose and connect
Pick a database, configure connection pooling, and decide how queries and schema changes run.
- PostgreSQL vs SQL Server for .NET Developers
7 min read
- SQLite With EF Core: When It's Enough
8 min read
- Connection Pooling in .NET With NpgsqlDataSource
8 min read
- Fixing "Timeout Expired: Connection Pool Exhausted" in .NET
7 min read
- Dapper in .NET: A Practical Guide
7 min read
- EF Core Migrations vs DbUp vs FluentMigrator
8 min read
Query performance
Read query plans, add the index a query can use, search text in the database, and split large tables and read traffic.
- Reading PostgreSQL Query Plans With EXPLAIN ANALYZE
7 min read
- PostgreSQL Indexing for .NET Developers
7 min read
- Why Postgres Ignores Your Index (Sargability, Taught by a Kata)
5 min read
- Full-Text Search in PostgreSQL With EF Core
6 min read
- PostgreSQL Table Partitioning for .NET Applications
8 min read
- Using Read Replicas in .NET Applications
7 min read
Concurrency and writes
Choose an isolation level, write upserts safely, lock across processes, and run a job queue on PostgreSQL.