C# Class EFLinqAnalyzer.ExtensionMethods

Mostra file Open project: jumpinjackie/roslyn-ef-linq-analyzer

Public Methods

Method Description
GetDeclaringMethod ( this identifier, SyntaxNodeAnalysisContext context ) : Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax

Gets the method declaration for the given method identifier

IsDbContextInstance ( this syntax, SyntaxNodeAnalysisContext context ) : bool

Indicates if this expression is a DbContext-derived object instance or some expression that returns one

IsDbSet ( this nts ) : bool
IsDbSetProperty ( this p ) : bool
IsQueryable ( this nts ) : bool
TryGetType ( this symbol ) : ITypeSymbol

Attempts to get the type of the given symbol

UltimatelyDerivesFromDbContext ( this type ) : bool

Indicates if this type symbol ultimately derives from DbContext

Method Details

GetDeclaringMethod() public static method

Gets the method declaration for the given method identifier
public static GetDeclaringMethod ( this identifier, SyntaxNodeAnalysisContext context ) : Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax
identifier this
context SyntaxNodeAnalysisContext
return Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax

IsDbContextInstance() public static method

Indicates if this expression is a DbContext-derived object instance or some expression that returns one
public static IsDbContextInstance ( this syntax, SyntaxNodeAnalysisContext context ) : bool
syntax this
context SyntaxNodeAnalysisContext
return bool

IsDbSet() public static method

public static IsDbSet ( this nts ) : bool
nts this
return bool

IsDbSetProperty() public static method

public static IsDbSetProperty ( this p ) : bool
p this
return bool

IsQueryable() public static method

public static IsQueryable ( this nts ) : bool
nts this
return bool

TryGetType() public static method

Attempts to get the type of the given symbol
public static TryGetType ( this symbol ) : ITypeSymbol
symbol this
return ITypeSymbol

UltimatelyDerivesFromDbContext() public static method

Indicates if this type symbol ultimately derives from DbContext
public static UltimatelyDerivesFromDbContext ( this type ) : bool
type this
return bool