Repository navigation
Adding custom IRelationalTypeMappingSourcePlugin
Pawel Gerr edited this page Feb 9, 2026
·
2 revisions
Use the extension method AddRelationalTypeMappingSourcePlugin<T> to add a custom implementation of IRelationalTypeMappingSourcePlugin.
services
.AddDbContext<DemoDbContext>(builder => builder
//.UseSqlite("...")
.UseSqlServer("...")
//.UseNpgsql("...")
.AddRelationalTypeMappingSourcePlugin<MyPlugin>()- Temp-Tables
- Bulk-Insert
- Bulk-Update
- Bulk-Upsert (Insert-or-Update)
- Entity Inheritance (TPH) (SQL Server, PostgreSQL, MySQL, SQLite)
- Truncate Tables