Click or drag to resize

ReferencedElement Class

Class which represents a referenced element in the entity model graph, reachable using the navigation paths contained, starting from the root document's referenced element.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ApplicationCore.DerivedModelReferencedElement

Namespace:  SD.LLBLGen.Pro.ApplicationCore.DerivedModel
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.7.0.0 (5.7.0)
Syntax
public class ReferencedElement

The ReferencedElement type exposes the following members.

Constructors
  NameDescription
Public methodReferencedElement(ReferencedEntity)
Initializes a new instance of the ReferencedElement class
Public methodReferencedElement(ReferencedEntity, ReferencedValueType)
Initializes a new instance of the ReferencedElement class
Top
Properties
  NameDescription
Public propertyCombinedPathAsString
Gets the combined path as string. It concats the path of the referenced entity before the valuetype's concatenated with a '.'. If no valuetype is specified, it will only return the referenced entity's path.
Public propertyCombinedPathLength
Gets the length of the combined path of referenced entity and referenced valuetype.
Public propertyElementGroupName
Gets the name of the group the outer element is in.
Public propertyElementName
Gets the element name for presentation purposes. This is either the name of the last navigator (or entity name if no navigator present) if no valuetype is present or in case a valuetype is specified the name of the last field, if any, otherwise the name of the valuetype.
Public propertyNoEntity
Gets a value indicating whether the referenced entity part is empty or not defined
Public propertyNoValueType
Gets a value indicating whether the referenced valuetype part is empty or not defined
Public propertyOuterReferencedElementFullName
Gets the name of the outer referenced element, which is the valuetype, if specified, otherwise the entity.
Public propertyPathAsString
Gets the full path of the outerreferenced element, which is either the path of the referenced entity if no valuetype is specified, otherwise it's the referenced entity path + . + the referenced valuetype path.
Public propertyReferencedEntity
Gets the referenced entity instance part.
Public propertyReferencedValueType
Gets the referenced valuetype instance part.
Public propertySourceElementTypeAsString
Gets the source element type as string, which is e.g. the field type if this source represents a field, or the full name of the entity or valuetype
Top
Methods
  NameDescription
Public methodBindEvents
Public methodClone
Clones this instance using deep cloning, except elements in the entity model, which are shallow cloned.
Public methodCreateEmbeddedDocumentName
Creates the name for an embedded document. If a valuetype is specified: It uses the last field of the path to the valuetype and uses that name. If a valuetype isn't specified: It uses the last navigator of the path and uses that name if the element is a single element. If the element represents a list / set of elements, it will singularize the name.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCombinedPathAsStringExcludingStartPath
Gets the combined path as string, excluding start path (if specified).
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSerializeToWriter
Serializes the data in this class to the serializer passed in
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodUnbindEvents
Top
Events
  NameDescription
Public eventEntityChanged
Raised when a value inside the entity this referenced entity is referencing has been changed. This event contains the information about the particular change.
Public eventHasBeenChanged
Event which is raised when a contained element has been changed. For observers it's not important which one, they have to re-examine the path for their own requirements to see whether it's still valid.
Public eventHasBeenRemoved
Raised when the implementing element has been removed from its container
Public eventValueTypeChanged
Raised when a value inside the valuetype this referenced valuetype is referencing has been changed. This event contains the information about the particular change.
Top
See Also