Table of Contents

Method AddRatatoskrEfCoreModel

Namespace
Ratatoskr.EfCore
Assembly
Ratatoskr.EfCore.dll

AddRatatoskrEfCoreModel(ModelBuilder, DatabaseFacade)

Adds all Entity Framework Core model configuration required for Ratatoskr durability (inbox and outbox tables, indexes, and constraints). Future Ratatoskr EF features will be included here so applications do not need to call multiple setup methods.

public static void AddRatatoskrEfCoreModel(this ModelBuilder modelBuilder, DatabaseFacade database)

Parameters

modelBuilder ModelBuilder

The model builder (typically from OnModelCreating).

database DatabaseFacade

The context's Database so provider-specific filtered indexes can be applied for supported providers (PostgreSQL, SQL Server), avoiding full-table processing indexes on large tables.