Table of Contents

Class AnalyzeSnapshotUseCase

Namespace
ProjGraph.Lib.EntityFramework.Application.UseCases
Assembly
ProjGraph.Lib.EntityFramework.dll

Use case for analyzing an Entity Framework ModelSnapshot.

public class AnalyzeSnapshotUseCase
Inheritance
AnalyzeSnapshotUseCase
Inherited Members

Constructors

AnalyzeSnapshotUseCase(IEfModelAnalyzer)

Use case for analyzing an Entity Framework ModelSnapshot.

public AnalyzeSnapshotUseCase(IEfModelAnalyzer modelAnalyzer)

Parameters

modelAnalyzer IEfModelAnalyzer

The EF model analyzer used for snapshot analysis.

Methods

ExecuteAsync(string, string?)

Executes the analysis of a specified Entity Framework ModelSnapshot.

public Task<EfModel> ExecuteAsync(string path, string? snapshotName = null)

Parameters

path string

The file path to the ModelSnapshot class.

snapshotName string

The optional name of the ModelSnapshot class to analyze.

Returns

Task<EfModel>

A task that represents the asynchronous operation. The task result contains the analyzed Entity Framework model.

Exceptions

ArgumentException

Thrown when the provided file path is not a .cs file.