1. Stylelabs.M.Sdk.Models.Typed.Fields

Class ReadOnlyToOneRelation

Defines a readonly-relation that is associated with only one entity.

Inheritance

object

ToOneRelation

ReadOnlyToOneRelation

Inherited Members

ToOneRelation.Client

ToOneRelation.Relation

ToOneRelation.GetEntityAsync(EntityLoadConfiguration)

ToOneRelation.GetEntityAsync(EntityLoadConfiguration)

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsTypedFields

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class ReadOnlyToOneRelation<TRelation> : ToOneRelation<TRelation> where TRelation : class, IToOneRelation

Type Parameters

NameDescription
TRelationThe type of the relation.

Constructors

ReadOnlyToOneRelation(IMClient, TypedEntityWrapper, string)

Initializes a new instance of the ReadOnlyToOneRelation class.

Declaration

public ReadOnlyToOneRelation(IMClient client, TypedEntityWrapper wrapper, string relationName)

Parameters

TypeNameDescription
IMClientclientThe IMClient instance.
TypedEntityWrapperwrapperThe typed entity wrapper.
stringrelationNameThe property name.

Properties

Id

Gets the value of the relation.

Declaration

public override long? Id { get; }

Property Value

TypeDescription
long

Overrides

Stylelabs.M.Sdk.Models.Typed.Fields.ToOneRelation.Id

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