RelationshipInfo Class |
Namespace: SD.LLBLGen.Pro.GeneratorCore
The RelationshipInfo type exposes the following members.
Name | Description | |
---|---|---|
RelationshipInfo |
Initializes a new instance of the RelationshipInfo class.
|
Name | Description | |
---|---|---|
CamelCasedNavigator |
Gets the navigator string but now camel cased.
| |
CamelCasedOppositeNavigator |
Gets the opposite navigator string but now camel cased.
| |
ForEntity |
Gets the entity this relationship info is for (the owner of this relationship info)
| |
IsOnPkSide |
Gets a value indicating whether the entity this relationship info is for is on the pk side of Relationship
| |
Navigator |
Gets the navigator.
| |
NavigatorInstance |
Gets the navigator instance for the navigator of the entity this info is for
| |
NavigatorIsHidden |
Gets a value indicating whether the navigator is hidden (empty) (true) or not (false)
| |
NavigatorIsOptional |
Gets a value indicating the element represented by the navigator is optional (true) or not in the context of the owner of the entity of the relationship.
(the start entity).
| |
NavigatorIsSingleEntity |
Gets a value indicating whether the navigator represents a set (true) or a single entity
| |
NormalRelationship |
Gets this.Relationship as NormalRelationshipEdge. If Relationship is not a NormalRelationshipEdge, null is returned.
| |
OppositeNavigator |
Gets the opposite navigator.
| |
OppositeNavigatorIsHidden |
Gets a value indicating whether the opposite navigator is hidden (empty) (true) or not (false)
| |
OppositeNavigatorIsOptional |
Gets a value indicating the element represented by the opposite navigator is optional (true) or not in the context of the owner of the entity of the relationship.
(the start entity).
| |
OppositeNavigatorIsSingleEntity |
Gets or sets a value indicating whether the opposite navigator represents a set (true) or a single entity
| |
OppositeRelationshipType |
Gets the type of the relationship from the related entity 's point of view. So 1:n becomes m:1
| |
RelatedEntity |
Gets the related entity.
| |
Relationship |
Gets the relationship.
| |
RelationshipType |
Gets the type of the relationship as seen from the owner entity's point of view. So if the type of this.Relationship is 1:n and
ForEntity is accessed via the end navigator (so this.ViaStartNavigator is false), this property returns m:1, while this.Relationship.RelationshipType
will return 1:n. This because 1 relationship object is used for both the sides of the relationship: customer 1:n order is equal to order m;1 customer.
| |
UniqueAssociationName |
Gets the name of the unique association.
| |
ViaStartNavigator |
Gets a value indicating whether the owning entity is reached through the start navigator or the end navigator of Relationship
|
Name | Description | |
---|---|---|
CreateOppositeVariant |
Creates the opposite variant of this relationshipinfo
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetFkFieldsAsStringFromFkSide |
Gets the fk field names as string from fk side, eventualy delimited with a delimiter (comma)
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetOppositeRelationshipFields |
Gets the relationship fields for the side this relationshipinfo is for. This means that if that entity is at the pk side, the pk fields are
returned of the relationship (if applicable) otherwise the fk fields. If the relationship is an m:n relationship, an empty list is returned
| |
GetPkFieldsAsStringFromPkSide |
Gets the pk fields as string from pk side, eventualy delimited with a delimiter (comma)
| |
GetRelationshipFieldPairs |
Gets the relationship field pairs from the point of view of the side this relationshipinfo is for.
This means that Value1 of a pair instance returned is the field in the entity this relationship info is for, and Value2 is a field
in the related entity, for the relationship this relationship info is for. If the relationship is an m:n relationship, an empty list is returned
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |