C# Class IdeaBlade.Drivers.EntityMemberProvider

Custom provider to ensure LINQPad doesn't follow navigation properties, or the EntityAspect/ComplexAspect.
Inheritance: LINQPad.ICustomMemberProvider
Afficher le fichier Open project: IdeaBlade/DevForce.Utilities Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public EntityMemberProvider ( object objectToWrite ) : System
objectToWrite object
Résultat System

GetNames() public méthode

public GetNames ( ) : IEnumerable
Résultat IEnumerable

GetTypes() public méthode

public GetTypes ( ) : IEnumerable
Résultat IEnumerable

GetValues() public méthode

public GetValues ( ) : IEnumerable
Résultat IEnumerable

IsAspect() public static méthode

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

IsEntityOrComplexType() public static méthode

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

IsNavigationProperty() public static méthode

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
Résultat bool