1. RelationLoadOption

Class RelationLoadOption

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Specifies which relations to load.

Inheritance
System.Object
RelationLoadOption
Namespace: Stylelabs.M.Framework.Essentials.LoadOptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
public class RelationLoadOption : object, IRelationLoadOption, ILoadOption

Constructors

RelationLoadOption()

Creates an empty relation load option. Defaults to None.

Declaration
public RelationLoadOption()

RelationLoadOption(IEnumerable<RelationSpecification>)

Creates a relation load option that loads specified relations.

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

Relation specifications.

RelationLoadOption(IEnumerable<String>)

Creates a relation load option that loads specified relations.

Declaration
public RelationLoadOption(IEnumerable<string> relationNames)
Parameters
TypeNameDescription
IEnumerable<System.String>relationNames

Relation names.

RelationLoadOption(LoadOption)

Creates a relation load option with specified load option.

Declaration
public RelationLoadOption(LoadOption loadOption)
Parameters
TypeNameDescription
LoadOptionloadOption

RelationLoadOption(RelationSpecification[])

Creates a relation load option that loads specified relations.

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

Relation specifications.

RelationLoadOption(String[])

Creates a relation load option that loads specified relations.

Declaration
public RelationLoadOption(params string[] relationNames)
Parameters
TypeNameDescription
System.String[]relationNames

Relation names.

Properties

All

Loads all relations.

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

LoadOption

Gets the load option.

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

None

Loads no relations.

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

Relations

Gets 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
IRelationLoadOption

DeepEquals(IRelationLoadOption)

Checks if this instance of IRelationLoadOption is equal to other.

Declaration
public bool DeepEquals(IRelationLoadOption other)
Parameters
TypeNameDescription
IRelationLoadOptionother
Returns
TypeDescription
System.Boolean

langword_csharp_True if the instances are equal; otherwise langword_csharp_False.

Implements

この記事を改善するための提案がある場合は、 お知らせください!