Show / Hide Table of Contents

Class RecordRelationship

Represents a one-to-one relationship between LogicalRecords.

Inheritance
object
NotificationObject
IdentifiableBase
RecordRelationship
Ddi31RecordRelationship
Implements
INotifyPropertyChanged
IIdentifiable
IHasCustomFields
IDescribable
IVisitable
Inherited Members
IdentifiableBase.DefaultAgencyId
IdentifiableBase.AgencyId
IdentifiableBase.Identifier
IdentifiableBase.UserIds
IdentifiableBase.CustomFields
IdentifiableBase.UserAttributes
IdentifiableBase.GetUserIdValue(string)
IdentifiableBase.RemoveChildHelper(IdentifierTriple, params IList[])
NotificationObject.PropertyChanged
NotificationObject.RaisePropertyChanged(string)
NotificationObject.OnPropertyChanged(string)
NotificationObject.ResumePropertyEvents()
NotificationObject.SuspendPropertyEvents()
NotificationObject.PropertyEventsSuspended
NotificationObject.PropagateChildChanges(INotifyCollectionChanged, string)
NotificationObject.WatchProperty(INotifyPropertyChanged, string)
NotificationObject.WatchCollection(INotifyCollectionChanged, string)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class RecordRelationship : IdentifiableBase, INotifyPropertyChanged, IIdentifiable, IHasCustomFields, IDescribable, IVisitable

Constructors

RecordRelationship()

Initializes a new instance of the RecordRelationship class.

Declaration
public RecordRelationship()

Properties

Description

Gets a description of the relationship.

Declaration
public virtual MultilingualString Description { get; }
Property Value
Type Description
MultilingualString

DisplayLabel

Gets the display label.

Declaration
public string DisplayLabel { get; }
Property Value
Type Description
string
Remarks

The display label returns text to be displayed in a user interface or in generated documentation.

ItemName

Gets the name of the item.

Declaration
public virtual MultilingualString ItemName { get; }
Property Value
Type Description
MultilingualString

The name of the item.

Label

Gets the label for the relationship.

Declaration
public MultilingualString Label { get; }
Property Value
Type Description
MultilingualString

RelationshipType

Gets or sets the type of the relationship between the items.

Declaration
public RecordRelationshipType RelationshipType { get; set; }
Property Value
Type Description
RecordRelationshipType

The type of the relationship.

SourceRecordReference

Gets or sets the source record.

Declaration
public virtual IdentifierTriple SourceRecordReference { get; set; }
Property Value
Type Description
IdentifierTriple

The source record.

SourceVariable

The variable inside the source record that links to the target record.

Declaration
public Variable SourceVariable { get; set; }
Property Value
Type Description
Variable
Remarks

This is a single variable because, to be consistent, if multiple variables are used as a key they should be represented by a new Variable.

TargetRecordReference

Gets or sets the target record.

Declaration
public virtual IdentifierTriple TargetRecordReference { get; set; }
Property Value
Type Description
IdentifierTriple

The target record.

TargetVariable

The variable inside the TargetRecord that links to the source record.

Declaration
public Variable TargetVariable { get; set; }
Property Value
Type Description
Variable
Remarks

This is a single variable because, to be consistent, if multiple variables are used as a key they should be represented by a new Variable.

Methods

Accept(IVersionableVisitor)

Accepts the specified visitor.

Declaration
public virtual void Accept(IVersionableVisitor visitor)
Parameters
Type Name Description
IVersionableVisitor visitor

The visitor.

GetChildren()

Gets the children.

Declaration
public override ChildItemCollection GetChildren()
Returns
Type Description
ChildItemCollection
Overrides
IdentifiableBase.GetChildren()

RemoveChild(IdentifierTriple)

Removes the child.

Declaration
public override int RemoveChild(IdentifierTriple child)
Parameters
Type Name Description
IdentifierTriple child

The child.

Returns
Type Description
int
Overrides
IdentifiableBase.RemoveChild(IdentifierTriple)
Exceptions
Type Condition
ArgumentNullException

child

ReplaceChild(IdentifierTriple, IVersionable)

Replaces the child.

Declaration
public override int ReplaceChild(IdentifierTriple toReplace, IVersionable child)
Parameters
Type Name Description
IdentifierTriple toReplace

To replace.

IVersionable child

The child.

Returns
Type Description
int
Overrides
IdentifiableBase.ReplaceChild(IdentifierTriple, IVersionable)
Exceptions
Type Condition
ArgumentNullException

child

WatchProperties()

Watch for property changed events

Declaration
protected override void WatchProperties()
Overrides
IdentifiableBase.WatchProperties()

Implements

INotifyPropertyChanged
IIdentifiable
IHasCustomFields
IDescribable
IVisitable

Extension Methods

VersionableCustomFieldExtensions.GetCustomFieldMultilingualStringValue(IHasCustomFields, string)
VersionableCustomFieldExtensions.GetCustomFieldStringValue(IHasCustomFields, string)
VersionableCustomFieldExtensions.GetCustomFieldUriValue(IHasCustomFields, string)
VersionableCustomFieldExtensions.SetCustomField(IHasCustomFields, MultilingualString, IVersionable)
VersionableCustomFieldExtensions.SetCustomField(IHasCustomFields, MultilingualString, string)
VersionableCustomFieldExtensions.SetCustomField(IHasCustomFields, string, IVersionable)
VersionableCustomFieldExtensions.SetCustomField(IHasCustomFields, string, string)
In this article
Back to top Generated by DocFX