Class RelationLoadOption

Specifies which relations to load.

Inheritance
object
RelationLoadOption
Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadOptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class RelationLoadOption : IRelationLoadOption, ILoadOption

Constructors

RelationLoadOption()

Initializes a new instance of the RelationLoadOption class. Defaults to .

Declaration
RequestResponse
public RelationLoadOption()

RelationLoadOption(IEnumerable<RelationSpecification>)

Initializes a new instance of the RelationLoadOption class.

Declaration
RequestResponse
public RelationLoadOption(IEnumerable<RelationSpecification> specs)
Parameters
TypeNameDescription
IEnumerable<>RelationSpecificationspecs

Relation specifications.

RelationLoadOption(IEnumerable<string>)

Initializes a new instance of the RelationLoadOption class.

Declaration
RequestResponse
public RelationLoadOption(IEnumerable<string> relationNames)
Parameters
TypeNameDescription
IEnumerable<>stringrelationNames

Relation names.

RelationLoadOption(LoadOption)

Initializes a new instance of the RelationLoadOption class.

Declaration
RequestResponse
public RelationLoadOption(LoadOption loadOption)
Parameters
TypeNameDescription
LoadOptionloadOption

A LoadOption.

RelationLoadOption(params RelationSpecification[])

Initializes a new instance of the RelationLoadOption class.

Declaration
RequestResponse
public RelationLoadOption(params RelationSpecification[] specs)
Parameters
TypeNameDescription
RelationSpecificationspecs

Relation specifications.

RelationLoadOption(params string[])

Initializes a new instance of the RelationLoadOption class.

Declaration
RequestResponse
public RelationLoadOption(params string[] relationNames)
Parameters
TypeNameDescription
stringrelationNames

Relation names.

Properties

All

Gets all relations.

Declaration
RequestResponse
public static IRelationLoadOption All { get; }
Property Value
TypeDescription
IRelationLoadOption

LoadOption

Gets or sets the load option.

Declaration
RequestResponse
public LoadOption LoadOption { get; set; }
Property Value
TypeDescription
LoadOption

None

Gets no relations.

Declaration
RequestResponse
public static IRelationLoadOption None { get; }
Property Value
TypeDescription
IRelationLoadOption

Relations

Gets or sets a list of relations that need to be loaded. This is only useful when LoadOption is Custom.

Declaration
RequestResponse
public IRelationSpecification[] Relations { get; set; }
Property Value
TypeDescription
IRelationSpecification

Methods

DeepClone()

Creates a deep clone of this instance.

Declaration
RequestResponse
public IRelationLoadOption DeepClone()
Returns
TypeDescription
IRelationLoadOption

The relation load option.

DeepEquals(IRelationLoadOption)

Checks if this instance of IRelationLoadOption is equal to other.

Declaration
RequestResponse
public bool DeepEquals(IRelationLoadOption other)
Parameters
TypeNameDescription
IRelationLoadOptionother

The relation load option.

Returns
TypeDescription
bool

langword_csharp_True if the instances are equal; otherwise langword_csharp_False.

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,