1. IToManyRelation

Interface IToManyRelation

Base interface for relation that are associated with many entities.

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsBase
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IToManyRelation : IRelation, IMember, IDirtyTracking

Methods

Add(long)

Adds an id to the relations values.

Declaration
void Add(long id)
Parameters
TypeNameDescription
longid

Id.

AddAsync(string)

Adds an id to the relations values.

Declaration
Task AddAsync(string identifier)
Parameters
TypeNameDescription
stringidentifier

The identifier.

Returns
TypeDescription
Task

A representing the asynchronous operation.

AddRange(IEnumerable<long>)

Adds multiple ids to the relations values.

Declaration
void AddRange(IEnumerable<long> ids)
Parameters
TypeNameDescription
IEnumerable<>longids

Ids.

AddRangeAsync(IEnumerable<string>)

Adds multiple ids to the relations values.

Declaration
Task AddRangeAsync(IEnumerable<string> identifiers)
Parameters
TypeNameDescription
IEnumerable<>stringidentifiers

The identifiers.

Returns
TypeDescription
Task

A representing the asynchronous operation.

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