Class ModelSnapshotParser
- Namespace
- ProjGraph.Lib.EntityFramework.Infrastructure
- Assembly
- ProjGraph.Lib.EntityFramework.dll
Parser for Entity Framework ModelSnapshot files: locates the snapshot's BuildModel method and
folds its fluent configuration into an EfModel via the Roslyn syntax walkers
(ProjGraph.Lib.EntityFramework.Infrastructure.FluentEntityWalker, ProjGraph.Lib.EntityFramework.Infrastructure.FluentPropertyWalker, ProjGraph.Lib.EntityFramework.Infrastructure.FluentRelationshipWalker).
public static class ModelSnapshotParser
- Inheritance
-
ModelSnapshotParser
- Inherited Members
Methods
Parse(ClassDeclarationSyntax, INamedTypeSymbol, Compilation)
Parses a ModelSnapshot class to extract the Entity Framework model.
public static EfModel Parse(ClassDeclarationSyntax snapshotClass, INamedTypeSymbol snapshotType, Compilation compilation)
Parameters
snapshotClassClassDeclarationSyntaxThe ClassDeclarationSyntax representing the ModelSnapshot class.
snapshotTypeINamedTypeSymbolThe INamedTypeSymbol representing the type of the ModelSnapshot class.
compilationCompilationThe Compilation object used for Roslyn analysis.