Click or drag to resize
IRelation Interface
Simple interface for relation which is the base interface for IDynamicRelation and IEntityRelation

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 IRelation

The IRelation type exposes the following members.

Properties
  NameDescription
Public propertyAliasLeftOperand
Gets the alias for the left operand.
Public propertyAliasRightOperand
Gets the alias for the right operand.
Public propertyHintTargetNameLeftOperand
Gets the name of the left operand for hint targeting. This is either AliasLeftOperand, or if that's empty the containing entity name of the left operand field, if applicable otherwise an empty string.
Public propertyHintTargetNameRightOperand
Gets the name of the right operand for hint targeting. This is either AliasRightOperand, or if that's empty the containing entity name of the right operand field, if applicable otherwise an empty string.
Public propertyJoinType
The join type to use. If right operand is null and left operand is a DerivedTableDefinition, this value is ignored.
Public propertyLeftOperandInheritanceInfo
Gets the left operand's InheritanceInfo
Public propertyRightOperandInheritanceInfo
Gets the right operand's InheritanceInfo
Public propertyStartElementIsPkSide
Returns true if the start element of the relation (the left operand) is the Pkside.
Top
Methods
  NameDescription
Public methodGetUsedEntityTypeNamesAndAliases
Gets per alias specified in a relation all entity names covered by that alias. This means that if an entity in a relation is based on multiple entities (through inheritance) it will return all entity names the entity is based on, from the actual entity to the root of the hierarchy path and every entity name in between. Also, if the relation contains derived tables, the fields filed under the alias of the derived table are returned.
Public methodReadXml
Deserializes the object data on the xml reader into this instance
Public methodToggleArtificialAliasingForTargetPerEntityRelations
Enables / disables the artificial aliasing for target per entity relations. This method is used to enable the artificial aliasing of entities which are in a hierarchy of TargetPerEntity and which are in this relation. This is switched on for dyn/typedlist fetches to be sure dyn/typedlists with fields from multiple entities in the same inheritance hierarchy will be retrievable properly, as they need aliasing under the hood but if the developer didn't alias the entities, the query will fail because the supertype(s) aren't joined multiple types.
Public methodWriteXml
Serializes the object as xml to the writer specified.
Top
See Also