C# 클래스 EFLinqAnalyzer.ExtensionMethods

파일 보기 프로젝트 열기: jumpinjackie/roslyn-ef-linq-analyzer

공개 메소드들

메소드 설명
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