1. RelationSpecification

Class RelationSpecification

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

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

Specifies a relation.

Inheritance
System.Object
RelationSpecification
Namespace: Stylelabs.M.Framework.Essentials.LoadOptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
public class RelationSpecification : object, IRelationSpecification

Constructors

RelationSpecification()

Creates a default specification.

Declaration
public RelationSpecification()

RelationSpecification(IRelationSpecification)

Creates a copy of the specified specification.

Declaration
public RelationSpecification(IRelationSpecification spec)
Parameters
TypeNameDescription
IRelationSpecificationspec

Relation specification.

RelationSpecification(String, Nullable<RelationRole>)

Creates a new instance of RelationSpecification with a specified name and optional role.

Declaration
public RelationSpecification(string name, RelationRole? role = null)
Parameters
TypeNameDescription
System.Stringname
System.Nullable<RelationRole>role

Properties

Name

Name of the relation (case insensitive).

Declaration
public string Name { get; set; }
Property Value
TypeDescription
System.String

Role

If the relation is self-referencing, which role to load. If it is null, both will be loaded into two separate relation objects.

Declaration
public RelationRole? Role { get; set; }
Property Value
TypeDescription
System.Nullable<RelationRole>

Methods

DeepClone()

Creates a deep clone of this instance.

Declaration
public IRelationSpecification DeepClone()
Returns
TypeDescription
IRelationSpecification

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
TypeNameDescription
System.Objectobj
Returns
TypeDescription
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
TypeDescription
System.Int32

Implements

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