EntityRelation Properties |
The EntityRelation type exposes the following members.
Name | Description | |
---|---|---|
AliasEndEntity |
Gets the alias of the end entity.
| |
AliasFKSide |
Alias value for the entity which is on the FK side of the relation. Determined from the relation type and the pk/fk fields
| |
AliasPKSide |
Alias value for the entity which is on the PK side of the relation. Determined from the relation type and the pk/fk fields
| |
AliasStartEntity |
Gets the alias of the start entity.
| |
AmountFields |
Returns the amount of fields in the EntityRelation object.
| |
CustomFilter |
Custom filter for JOIN clauses which are added with AND to the ON clause resulting from this EntityRelation. By adding a
predicate expression with fieldcomparevalue predicate objects for example, you can add extra filtering inside the JOIN.
| |
CustomFilterReplacesOnClause |
Flag to signal the join creator logic to use the CustomFilter specified as the ON clause, instead of appending the CustomFilter to the ON
clause. Ignored if CustomFilter is null or empty. Default is false.
| |
HintForJoins |
Hint value for the consideration of the jointype of this relation.
Default: JoinHint.None
| |
InheritanceInfoFkSideEntity |
Gets or sets the inheritance info for the fk side entity.
| |
InheritanceInfoPkSideEntity |
Gets or sets the inheritance info for the pk side entity.
| |
IsHierarchyRelation |
Gets or sets a value indicating whether this instance is a hierarchy relation.
| |
IsWeak |
Flag to signal if this relation is a 'weak' relation or not. Weak relations are optional relations, which means when A and B have a
weak relation, not all instances of A have to have a related instance of B.
| |
MappedFieldName |
Gets or sets the name of the field mapped onto this relation in the start entity.
| |
StartEntityIsPkSide |
Set to true if the start entity of the relation is the PK side of the relation. This is set in the generated code.
This property is true in 1:n relations and in 1:1 relations where the start entity is the PK side and the end entity is thus the
FK side. Required for determining which alias belongs to which entity.
| |
TypeOfRelation |
The relation type the IEntityRelation instance represents.
|
Name | Description | |
---|---|---|
IRelationAliasLeftOperand |
Gets the alias for the left operand (Start entity)
| |
IRelationAliasRightOperand |
Gets the alias for the right operand (End entity)
| |
IRelationHintTargetNameLeftOperand |
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.
| |
IRelationHintTargetNameRightOperand |
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.
| |
IRelationJoinType |
The join type to use.
| |
IRelationLeftOperandInheritanceInfo |
Gets the left operand's InheritanceInfo
| |
IRelationRightOperandInheritanceInfo |
Gets the right operand's InheritanceInfo
| |
IRelationStartElementIsPkSide |
Returns true if the start element of the relation (the left operand) is the Pkside.
|