Relationship Class

Defines the hierarchical relationship of a child entity to its parent entity within a query.

Inheritance Hierarchy

System Object

  Scribe.Core.ConnectorApi.Query Relationship

Namespace:  Scribe.Core.ConnectorApi.Query
Assembly:  Scribe.Core.ConnectorApi (in Scribe.Core.ConnectorApi.dll)

Syntax

[DataContractAttribute]
public class Relationship : IEqualityComparer<Relationship>

The Relationship type exposes the following members.

Constructors

 

Name

Description

Public method

Relationship

This constructor will default the IsRequired to true (or inner join).

Properties

 

Name

Description

Public property

ChildProperties

Gets or sets the properties of the child that comprise the relationship.

Public property

IsRequired

Gets or sets a value indicating whether the relationship is required or not. If true only entities that contain children on this relationship will be returned.

Public property

ParentProperties

Gets or sets the properties of the parent that comprise the relationship.

Methods

 

Name

Description

Public method

Equals(Object)

This method will return whether this object and the passed in object are equal.

(Overrides Object Equals(Object).)

Public method

Equals(Relationship, Relationship)

This method will return whether the two passed in objects are equal.

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

(Inherited from Object.)

Public method

GetHashCode

This method will return the hashcode of this object.

(Overrides Object GetHashCode .)

Public method

GetHashCode(Relationship)

This method will return the hashcode of the passed in object.

Public method

GetType

Gets the Type of the current instance.

(Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)

Public method

ToString

Returns a string that represents the current object.

(Inherited from Object.)

See

Scribe.Core.ConnectorApi.Query Namespace