C# Class EFLinqAnalyzer.EFUsageContext

An Entity Framework specific view of the current semantic model Symbols of interest to Entity Framework are stashed for easy lookup
Exibir arquivo Open project: jumpinjackie/roslyn-ef-linq-analyzer Class Usage Examples

Public Methods

Method Description
Build ( ) : bool

Builds the EF-specific view of the current semantic model

EFUsageContext ( SyntaxNodeAnalysisContext context ) : Microsoft.CodeAnalysis
GetClassForProperty ( string propertyName ) : ImmutableArray

Gets the applicable EF classes for the given property name.

GetClassInfo ( ITypeSymbol typeArg ) : EFCodeFirstClassInfo

Gets the EF class info for the given type symbol. Returns null if no such class found

Method Details

Build() public method

Builds the EF-specific view of the current semantic model
public Build ( ) : bool
return bool

EFUsageContext() public method

public EFUsageContext ( SyntaxNodeAnalysisContext context ) : Microsoft.CodeAnalysis
context SyntaxNodeAnalysisContext
return Microsoft.CodeAnalysis

GetClassForProperty() public method

Gets the applicable EF classes for the given property name.
public GetClassForProperty ( string propertyName ) : ImmutableArray
propertyName string
return ImmutableArray

GetClassInfo() public method

Gets the EF class info for the given type symbol. Returns null if no such class found
public GetClassInfo ( ITypeSymbol typeArg ) : EFCodeFirstClassInfo
typeArg ITypeSymbol
return EFCodeFirstClassInfo