Class RelationSpecification
Specifies a relation.
Inheritance
object
RelationSpecification
Implements
Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadOptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class RelationSpecification : IRelationSpecificationConstructors
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
| Type | Name | Description |
|---|---|---|
| IRelationSpecification | spec |
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
| Type | Name | Description |
|---|---|---|
| string | name |
The relation name. |
| RelationRole | role |
The relation role. |
Properties
Name
Gets name of the relation (case insensitive).
Declaration
RequestResponse
public string Name { get; set; }Property Value
| Type | Description |
|---|---|
| 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
| Type | Description |
|---|---|
| RelationRole |
Methods
DeepClone()
Creates a deep clone of this instance.
Declaration
RequestResponse
public IRelationSpecification DeepClone()Returns
| Type | Description |
|---|---|
| IRelationSpecification |
The relation specification. |
Equals(object)
Declaration
RequestResponse
public override bool Equals(object obj)Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
RequestResponse
public override int GetHashCode()Returns
| Type | Description |
|---|---|
| int |