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
contextTypeINamedTypeSymbolThe named type symbol of the DbContext class.
entitiesDictionary<string, EfEntity>The dictionary of entities in the model.
modelEfModelThe EF model to apply constraints to.
compilationCompilationThe Roslyn compilation for symbol resolution.