C# Class IdeaBlade.Drivers.EntityMemberProvider

Custom provider to ensure LINQPad doesn't follow navigation properties, or the EntityAspect/ComplexAspect.
Inheritance: LINQPad.ICustomMemberProvider
ファイルを表示 Open project: IdeaBlade/DevForce.Utilities Class Usage Examples

Public Methods

Method Description
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.

Method Details

EntityMemberProvider() public method

public EntityMemberProvider ( object objectToWrite ) : System
objectToWrite object
return System

GetNames() public method

public GetNames ( ) : IEnumerable
return IEnumerable

GetTypes() public method

public GetTypes ( ) : IEnumerable
return IEnumerable

GetValues() public method

public GetValues ( ) : IEnumerable
return IEnumerable

IsAspect() public static method

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

IsEntityOrComplexType() public static method

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

IsNavigationProperty() public static method

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
return bool