Entity Framework Core
Microsoft's ORM for .NET. Map C# classes to tables, query with LINQ, and manage schema changes with migrations. Works with SQL Server, PostgreSQL (via Npgsql), SQLite and others.
Other databases & sql tools, in our recommended order. About Use The Index, Luke →
Microsoft's ORM for .NET. Map C# classes to tables, query with LINQ, and manage schema changes with migrations. Works with SQL Server, PostgreSQL (via Npgsql), SQLite and others.
Lightweight object mapper: you write the SQL, Dapper maps the rows to C# objects. Very little overhead, which is why it's often used next to EF Core for performance-critical queries.
The official PostgreSQL manual. Unusually readable; the chapters on indexes, MVCC and EXPLAIN are worth reading in full.
A small, serverless SQL database stored in one file. Good for learning SQL, tests, local tools and many small production apps.
Write SQL queries in .sql files and sqlc generates type-safe Go code for them. Supports PostgreSQL, MySQL and SQLite.
The tutorial section of the official PostgreSQL documentation: creating tables, querying, joins, transactions and more, explained by the people who build it.
Free interactive SQL lessons in the browser: each lesson explains one idea, such as joins or aggregates, then has exercises you run against a small database.
Free SQL practice problems on a sample club-booking database, from simple selects to window functions and recursive queries, run against real PostgreSQL.
Free open-source database client that connects to PostgreSQL, MySQL, SQL Server, SQLite and many more, with a SQL editor, data browser and ER diagrams.
Draw database schemas by writing a simple text format (DBML); it renders the diagram and can export SQL.
Book by Martin Kleppmann (O'Reilly) on how databases, replication, partitioning, streams and distributed systems work, and how they trade off.