Skip to content

Adding custom IRelationalTypeMappingSourcePlugin

Pawel Gerr edited this page Feb 9, 2026 · 2 revisions

Required Nuget Package: Thinktecture.EntityFrameworkCore.Relational

Usage

Use the extension method AddRelationalTypeMappingSourcePlugin<T> to add a custom implementation of IRelationalTypeMappingSourcePlugin.

services
   .AddDbContext<DemoDbContext>(builder => builder
                                           //.UseSqlite("...")
                                           .UseSqlServer("...")
                                           //.UseNpgsql("...")
                                           .AddRelationalTypeMappingSourcePlugin<MyPlugin>()

Clone this wiki locally