Class ReadOnlyToOneRelation<TRelation>

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

Inheritance
object
ReadOnlyToOneRelation<TRelation>
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsTypedFields
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class ReadOnlyToOneRelation<TRelation> : ToOneRelation<TRelation> where TRelation : class, IToOneRelation
Type Parameters
NameDescription
TRelation

The type of the relation.

Constructors

ReadOnlyToOneRelation(IMClient, TypedEntityWrapper, string)

Initializes a new instance of the ReadOnlyToOneRelation<TRelation> class.

Declaration
RequestResponse
public ReadOnlyToOneRelation(IMClient client, TypedEntityWrapper wrapper, string relationName)
Parameters
TypeNameDescription
IMClientclient

The IMClient instance.

TypedEntityWrapperwrapper

The typed entity wrapper.

stringrelationName

The property name.

Properties

Id

Gets the value of the relation.

Declaration
RequestResponse
public override long? Id { get; }
Property Value
TypeDescription
long
Overrides
Stylelabs.M.Sdk.Models.Typed.Fields.ToOneRelation<TRelation>.Id

Do you have some feedback for us?

If you have suggestions for improving this article,