1. Stylelabs.M.Framework.Essentials.LoadOptions

Class RelationLoadOption

Specifies which relations to load.

Inheritance

object

RelationLoadOption

Implements

IRelationLoadOption

ILoadOption

Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadOptions

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class RelationLoadOption : IRelationLoadOption, ILoadOption

Constructors

RelationLoadOption()

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

Declaration

public RelationLoadOption()

RelationLoadOption(IEnumerable)

Initializes a new instance of the RelationLoadOption class.

Declaration

public RelationLoadOption(IEnumerable<RelationSpecification> specs)

Parameters

TypeNameDescription
IEnumerable<>RelationSpecificationspecsRelation specifications.

RelationLoadOption(IEnumerable)

Initializes a new instance of the RelationLoadOption class.

Declaration

public RelationLoadOption(IEnumerable<string> relationNames)

Parameters

TypeNameDescription
IEnumerable<>stringrelationNamesRelation names.

RelationLoadOption(LoadOption)

Initializes a new instance of the RelationLoadOption class.

Declaration

public RelationLoadOption(LoadOption loadOption)

Parameters

TypeNameDescription
LoadOptionloadOptionA LoadOption.

RelationLoadOption(params RelationSpecification[])

Initializes a new instance of the RelationLoadOption class.

Declaration

public RelationLoadOption(params RelationSpecification[] specs)

Parameters

TypeNameDescription
RelationSpecificationspecsRelation specifications.

RelationLoadOption(params string[])

Initializes a new instance of the RelationLoadOption class.

Declaration

public RelationLoadOption(params string[] relationNames)

Parameters

TypeNameDescription
stringrelationNamesRelation names.

Properties

All

Gets all relations.

Declaration

public static IRelationLoadOption All { get; }

Property Value

TypeDescription
IRelationLoadOption

Gets or sets the load option.

Declaration

public LoadOption LoadOption { get; set; }

Property Value

TypeDescription
LoadOption

None

Gets no relations.

Declaration

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

public IRelationSpecification[] Relations { get; set; }

Property Value

TypeDescription
IRelationSpecification

Methods

DeepClone()

Creates a deep clone of this instance.

Declaration

public IRelationLoadOption DeepClone()

Returns

TypeDescription
IRelationLoadOptionThe relation load option.

DeepEquals(IRelationLoadOption)

Checks if this instance of IRelationLoadOption is equal to other.

Declaration

public bool DeepEquals(IRelationLoadOption other)

Parameters

TypeNameDescription
IRelationLoadOptionotherThe relation load option.

Returns

TypeDescription
boollangword_csharp_True if the instances are equal; otherwise langword_csharp_False.

Implements

IRelationLoadOption

ILoadOption

If you have suggestions for improving this article, let us know!