Class RelationSpecification

Specifies a relation.

Inheritance
object
RelationSpecification
Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadOptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class RelationSpecification : IRelationSpecification

Constructors

RelationSpecification()

Initializes a new instance of the RelationSpecification class.

Declaration
RequestResponse
public RelationSpecification()

RelationSpecification(IRelationSpecification)

Initializes a new instance of the RelationSpecification class.

Declaration
RequestResponse
public RelationSpecification(IRelationSpecification spec)
Parameters
TypeNameDescription
IRelationSpecificationspec

Relation specification.

RelationSpecification(string, RelationRole?)

Initializes a new instance of the RelationSpecification class with a specified name and optional role.

Declaration
RequestResponse
public RelationSpecification(string name, RelationRole? role = null)
Parameters
TypeNameDescription
stringname

The relation name.

RelationRolerole

The relation role.

Properties

Name

Gets name of the relation (case insensitive).

Declaration
RequestResponse
public string Name { get; set; }
Property Value
TypeDescription
string

Role

Gets if the relation is self-referencing, which role to load. If it is null, both will be loaded into two separate relation objects.

Declaration
RequestResponse
public RelationRole? Role { get; set; }
Property Value
TypeDescription
RelationRole

Methods

DeepClone()

Creates a deep clone of this instance.

Declaration
RequestResponse
public IRelationSpecification DeepClone()
Returns
TypeDescription
IRelationSpecification

The relation specification.

Equals(object)

Declaration
RequestResponse
public override bool Equals(object obj)
Parameters
TypeNameDescription
objectobj
Returns
TypeDescription
bool

GetHashCode()

Declaration
RequestResponse
public override int GetHashCode()
Returns
TypeDescription
int

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,