These libraries extend Entity Framework Core by a few features to make it easier to work with EF or to get more performance in some special cases.
| Provider | Package |
|---|---|
| SQL Server | Thinktecture.EntityFrameworkCore.SqlServer |
| PostgreSQL (Npgsql) | Thinktecture.EntityFrameworkCore.PostgreSQL |
| MySQL (Microting; MariaDB is not tested) | Thinktecture.EntityFrameworkCore.MySql |
| SQLite | Thinktecture.EntityFrameworkCore.Sqlite |
- Temp-Tables (SQL Server, PostgreSQL, MySQL, SQLite)
- Bulk-Insert (SQL Server, PostgreSQL, MySQL, SQLite)
- Bulk-Update (SQL Server, PostgreSQL, MySQL, SQLite)
- Bulk-Upsert (Insert-or-Update) (SQL Server, PostgreSQL, MySQL, SQLite)
- Entity Inheritance (TPH) in bulk operations and temp tables (SQL Server, PostgreSQL, MySQL, SQLite)
- Truncate Tables (SQL Server, PostgreSQL, MySQL, SQLite)
- Collection Parameters (temp-tables light) (SQL Server, PostgreSQL, MySQL)
- Window Functions Support (RowNumber, Sum, Average, Min, Max) (SQL Server, PostgreSQL, MySQL, SQLite*)
- Bitwise Aggregates (BitOr, BitAnd, BitXor) (PostgreSQL, MySQL)
- Nested (virtual) Transactions
- Table Hints (SQL Server)
- Queries across multiple databases (SQL Server)
- Changing default schema at runtime
- If-Exists / If-Not-Exists checks in migrations (SQL Server, PostgreSQL)
* SQLite supports RowNumber and NTile; Sum, Average, Min, Max are available on SQL Server, PostgreSQL and MySQL.
MySQL bulk operations insert rows with multi-row INSERT statements by default. The registration AddBulkOperationSupport(useBulkCopy: true) switches every insert of the bulk operations to MySqlBulkCopy (LOAD DATA LOCAL INFILE). Bulk copy needs AllowLoadLocalInfile=true in the connection string and local_infile=ON on the server.
A MySQL bulk upsert returns the number of matched rows of its UPDATE plus the number of inserted rows.
- Migrations: include-columns (SQL Server, PostgreSQL)
- Migrations: identity column (SQL Server, PostgreSQL)
- Migrations: (non-)clustered PK (SQL Server)
An AI agent skill teaches AI coding agents how to consume these packages. The skill lives in the repository PawelGerr/agent-skills under skills/thinktecture-entityframeworkcore. Install it with the skills CLI:
npx skills@latest add PawelGerr/agent-skills --skill thinktecture-entityframeworkcoreIn Claude Code, you can install the skill as a plugin instead:
/plugin marketplace add PawelGerr/agent-skills
/plugin install thinktecture-entityframeworkcore@pawelgerr
The library is also indexed by Context7 (MCP) under the id /pawelgerr/thinktecture.entityframeworkcore. See AI Coding Assistants for details.