Table of Contents

Class FluentApiConfigurationParser

Namespace
ProjGraph.Lib.EntityFramework.Infrastructure
Assembly
ProjGraph.Lib.EntityFramework.dll

Orchestrates the DbContext path's Fluent API analysis: locates OnModelCreating and folds its configuration into the model via the Roslyn syntax walkers.

public static class FluentApiConfigurationParser
Inheritance
FluentApiConfigurationParser
Inherited Members

Methods

ApplyFluentApiConstraints(INamedTypeSymbol, Dictionary<string, EfEntity>, EfModel, Compilation)

Applies Fluent API constraints to the specified Entity Framework model by parsing the "OnModelCreating" method of the provided context type and processing each entity configuration section.

public static void ApplyFluentApiConstraints(INamedTypeSymbol contextType, Dictionary<string, EfEntity> entities, EfModel model, Compilation compilation)

Parameters

contextType INamedTypeSymbol

The named type symbol of the DbContext class.

entities Dictionary<string, EfEntity>

The dictionary of entities in the model.

model EfModel

The EF model to apply constraints to.

compilation Compilation

The Roslyn compilation for symbol resolution.