Class ReadOnlyToOneRelation<TRelation>
Version: 3.2
Defines a readonly-relation that is associated with only one entity.
Inherited Members
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsTypedFields
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class ReadOnlyToOneRelation<TRelation> : ToOneRelation<TRelation> where TRelation : class, IToOneRelationType Parameters
| Name | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| IMClient | client |
The IMClient instance. |
| TypedEntityWrapper | wrapper |
The typed entity wrapper. |
| string | relationName |
The property name. |
Properties
Id
Gets the value of the relation.
Declaration
RequestResponse
public override long? Id { get; }Property Value
| Type | Description |
|---|---|
| long |
Overrides
Stylelabs.M.Sdk.Models.Typed.Fields.ToOneRelation<TRelation>.Id