Skip to content

Adding custom IRelationalTypeMappingSourcePlugin

Pawel Gerr edited this page Nov 11, 2025 · 1 revision

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("...")
                                           .AddRelationalTypeMappingSourcePlugin<MyPlugin>()

Clone this wiki locally