C# 클래스 IdeaBlade.Drivers.EntityMemberProvider

Custom provider to ensure LINQPad doesn't follow navigation properties, or the EntityAspect/ComplexAspect.
상속: LINQPad.ICustomMemberProvider
파일 보기 프로젝트 열기: IdeaBlade/DevForce.Utilities 1 사용 예제들

공개 메소드들

메소드 설명
EntityMemberProvider ( object objectToWrite ) : System
GetNames ( ) : IEnumerable
GetTypes ( ) : IEnumerable
GetValues ( ) : IEnumerable
IsAspect ( PropertyInfo pi ) : bool

Checks for either EntityAspect or ComplexAspect, both of which should be ignored.

IsEntityOrComplexType ( Type t ) : bool

This returns true for entities and complex types.

IsNavigationProperty ( Type t ) : bool

This is used to determine when a property should be followed. We don't want to follow navigation properties.

메소드 상세

EntityMemberProvider() 공개 메소드

public EntityMemberProvider ( object objectToWrite ) : System
objectToWrite object
리턴 System

GetNames() 공개 메소드

public GetNames ( ) : IEnumerable
리턴 IEnumerable

GetTypes() 공개 메소드

public GetTypes ( ) : IEnumerable
리턴 IEnumerable

GetValues() 공개 메소드

public GetValues ( ) : IEnumerable
리턴 IEnumerable

IsAspect() 공개 정적인 메소드

Checks for either EntityAspect or ComplexAspect, both of which should be ignored.
public static IsAspect ( PropertyInfo pi ) : bool
pi System.Reflection.PropertyInfo
리턴 bool

IsEntityOrComplexType() 공개 정적인 메소드

This returns true for entities and complex types.
public static IsEntityOrComplexType ( Type t ) : bool
t System.Type
리턴 bool

IsNavigationProperty() 공개 정적인 메소드

This is used to determine when a property should be followed. We don't want to follow navigation properties.
public static IsNavigationProperty ( Type t ) : bool
t System.Type
리턴 bool