Class RelationLoadOption
Specifies which relations to load.
Inheritance
object
RelationLoadOption
Implements
Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadOptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
Constructors
RelationLoadOption()
Initializes a new instance of the RelationLoadOption class. Defaults to LoadOption.None .
Declaration
RelationLoadOption(IEnumerable)
Initializes a new instance of the RelationLoadOption class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>RelationSpecification | specs | Relation specifications. |
RelationLoadOption(IEnumerable)
Initializes a new instance of the RelationLoadOption class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>string | relationNames | Relation names. |
RelationLoadOption(LoadOption)
Initializes a new instance of the RelationLoadOption class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| LoadOption | loadOption | A LoadOption. |
RelationLoadOption(params RelationSpecification[])
Initializes a new instance of the RelationLoadOption class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| RelationSpecification | specs | Relation specifications. |
RelationLoadOption(params string[])
Initializes a new instance of the RelationLoadOption class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | relationNames | Relation names. |
Properties
All
Gets all relations.
Declaration
Property Value
| Type | Description |
|---|---|
| IRelationLoadOption |
Gets or sets the load option.
Declaration
Property Value
| Type | Description |
|---|---|
| LoadOption |
None
Gets no relations.
Declaration
Property Value
| Type | Description |
|---|---|
| IRelationLoadOption |
Relations
Gets or sets a list of relations that need to be loaded. This is only useful when LoadOption is Custom.
Declaration
Property Value
| Type | Description |
|---|---|
| IRelationSpecification |
Methods
DeepClone()
Creates a deep clone of this instance.
Declaration
Returns
| Type | Description |
|---|---|
| IRelationLoadOption | The relation load option. |
DeepEquals(IRelationLoadOption)
Checks if this instance of IRelationLoadOption is equal to other.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IRelationLoadOption | other | The relation load option. |
Returns
| Type | Description |
|---|---|
| bool | langword_csharp_True if the instances are equal; otherwise langword_csharp_False. |
Implements
If you have suggestions for improving this article, let us know!