Class Dependency
Represents a dependency link between two entities.
Inheritance
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services.Export
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class Dependency : IEquatable<Dependency>
Constructors
Dependency()
Initializes an empty instance.
Declaration
public Dependency()
Dependency(EntityReference)
Initializes new instance from provided entity reference.
Declaration
public Dependency(EntityReference reference)
Parameters
Type | Name | Description |
---|---|---|
EntityReference | reference | Reference to be populated from. |
Properties
DependencyType
Gets or sets the dependency type: natural or declarative.
Declaration
public DependencyType DependencyType { get; set; }
Property Value
Type | Description |
---|---|
DependencyType |
Description
Gets or sets the dependency description.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ForeignEntity
Gets or sets the local identifier of the entity that is dependent on or references another entity.
Declaration
public LocalIdentifier ForeignEntity { get; set; }
Property Value
Type | Description |
---|---|
LocalIdentifier |
PrimaryEntity
Gets or sets the local identifier of the entity that is a dependency for or referenced by another entity.
Declaration
public LocalIdentifier PrimaryEntity { get; set; }
Property Value
Type | Description |
---|---|
LocalIdentifier |
ReferenceType
Gets or sets the foreign entity reference type: depends on or contains primary entity.
Declaration
public EntityReferenceType ReferenceType { get; set; }
Property Value
Type | Description |
---|---|
EntityReferenceType |
Methods
Equals(Dependency)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(Dependency other)
Parameters
Type | Name | Description |
---|---|---|
Dependency | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | True, if objects are equal. False, if objects are not equal. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code of the current instance. |
Overrides
ToString()
Returns the text representation of the object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The text representation of the object. |