C# Класс EFLinqAnalyzer.ExtensionMethods

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

GetDeclaringMethod() публичный статический Метод

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
Результат Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax

IsDbContextInstance() публичный статический Метод

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
Результат bool

IsDbSet() публичный статический Метод

public static IsDbSet ( this nts ) : bool
nts this
Результат bool

IsDbSetProperty() публичный статический Метод

public static IsDbSetProperty ( this p ) : bool
p this
Результат bool

IsQueryable() публичный статический Метод

public static IsQueryable ( this nts ) : bool
nts this
Результат bool

TryGetType() публичный статический Метод

Attempts to get the type of the given symbol
public static TryGetType ( this symbol ) : ITypeSymbol
symbol this
Результат ITypeSymbol

UltimatelyDerivesFromDbContext() публичный статический Метод

Indicates if this type symbol ultimately derives from DbContext
public static UltimatelyDerivesFromDbContext ( this type ) : bool
type this
Результат bool