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