Click or drag to resize
IInheritanceInfoProvider Interface
Interface for inheritanceinfo provider objects and other inheritance information. InheritanceInfo objects provide inheritance information at runtime for the DQE's and helper classes. The information inside these providers has to be statically constructed and should not change at runtime to make it threadsafe. These providers supply the DQE with detailed inheritance information so queries can be formed for any entity hierarchy.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public interface IInheritanceInfoProvider

The IInheritanceInfoProvider type exposes the following members.

Methods
  NameDescription
Public methodCheckIfIsSubTypeOf
Determines if typeToCheck is a subtype of superType.
Public methodGetAllEntityNamesInProvider
Gets all entity names in the provider.
Public methodGetEntityFactory
Retrieves the factory for the entity represented by the values passed in, or null if entityName isn't present. The values have to represent an entity of the type entityName or a subtype of that type.
Public methodGetEntityNamesOnHierarchyPath
Gets the entity names on hierarchy path, from this entity to the root starting with the root of the hierarchy and ending with the name specified as entityName. If entityName entity is a root entity, this collection contains one name: entityName.
Public methodGetEntityTypeFilter(String, Boolean)
Gets a predicateexpression which filters on the entity with type 'entityName'. Example of a valid name is 'CustomerEntity'.
Public methodGetEntityTypeFilter(String, String, Boolean)
Gets a predicateexpression which filters on the entity with type 'entityName'. Example of a valid name is 'CustomerEntity'.
Public methodGetEntityTypeFilters
Gets the entity type filters for the entity names specified. It will use the object aliases specified for the entity names. It will filter out entities which are in a hierarchy of type TargetPerEntity and will also filter out supertypes if the subtype is also in the list. Routine is used to add type filters to typedlists automatically for fields in TargetPerEntityHierarchy hierarchies.
Public methodGetHierarchyFieldAlias
Gets the hierarchy field alias to use for targeting this field in an entity fetch. The alias is of the format FentityIndex_fieldIndex which is the same alias as for the fields returned by GetHierarchyFields.
Public methodGetHierarchyFields
This method returns an array of IEntityFieldCore objects which contains all fields of all entities on the path: entityName upwards to the root and entityName downwards to all leafs reachable from entityName, including entityName.
Public methodGetHierarchyRelations(ListString, String)
This method returns all relations from the lowest entity found in the passed in entityNames to the root and from the lowest entityName downwards to all the reachable leafs from entityName. All relations to the root are INNER JOIN, all relations from the lowest entityName to leafs are LEFT JOIN
Public methodGetHierarchyRelations(String, String)
This method returns all relations from the entityName to the root and from the entityName downwards to all the reachable leafs from entityName. All relations to the root are INNER JOIN, all relations from entityName to leafs are LEFT JOIN
Public methodGetHierarchyRelations(String, String, Boolean)
This method returns all relations from the entityName to the root and from the entityName downwards to all the reachable leafs from entityName, if includePathsToReachableLeafs is set to true. All relations to the root are INNER JOIN, all relations from entityName to leafs are LEFT JOIN
Public methodGetHierarchyType
Gets the type of the hierarchy.
Public methodGetInheritanceInfo
Gets an IInheritanceInfo object with the inheritance information for the entity with the supplied name.
Public methodIsEntityInInheritanceHierarchy
Determines whether the entity with the name specified is in an inheritance hierarchy or not.
Top
See Also