1. IEntityCopyOptionsBuilder

Interface IEntityCopyOptionsBuilder

A builder for instances of IEntityCopyOptions.

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsContent
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IEntityCopyOptionsBuilder

Methods

Build()

Gets the resulting instance of IEntityCopyOptions.

Declaration
IEntityCopyOptions Build()
Returns
TypeDescription
IEntityCopyOptions

The builder.

WithCopyProfile(long)

Indicates that the entity should be copied using the copy profile with the specified id.

Declaration
IEntityCopyOptionsBuilder WithCopyProfile(long id)
Parameters
TypeNameDescription
longid

The id of the copy profile.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithCopyProfile(string)

Indicates that the entity should be copied using the copy profile with the specified identifier.

Declaration
IEntityCopyOptionsBuilder WithCopyProfile(string identifier)
Parameters
TypeNameDescription
stringidentifier

The identifier of the copy profile.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithDestinationEntityId(long)

Indicates that the entity should be copied to the entity with the specified id.

Declaration
IEntityCopyOptionsBuilder WithDestinationEntityId(long id)
Parameters
TypeNameDescription
longid

The destination entity id.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithProperties(IEnumerable<IPropertyCopyOption>)

Indicates that the entity should be copied with the specified properties.

Declaration
IEntityCopyOptionsBuilder WithProperties(IEnumerable<IPropertyCopyOption> properties)
Parameters
TypeNameDescription
IEnumerable<>IPropertyCopyOptionproperties

The properties collection.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithProperty(string, PropertyCopyMethod, string)

Indicates that the entity should be copied with the specified property.

Declaration
IEntityCopyOptionsBuilder WithProperty(string property, PropertyCopyMethod method, string newValue = null)
Parameters
TypeNameDescription
stringproperty

The name of the property.

PropertyCopyMethodmethod

The copy method.

stringnewValue

The property new value.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithRelation(string, RelationCopyMethod, IEntityCopyOptions)

Indicates that the entity should be copied with the specified relation.

Declaration
IEntityCopyOptionsBuilder WithRelation(string relation, RelationCopyMethod method, IEntityCopyOptions relatedOptions = null)
Parameters
TypeNameDescription
stringrelation

The name of the relation.

RelationCopyMethodmethod

The copy method.

IEntityCopyOptionsrelatedOptions

The related options.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithRelations(IEnumerable<IRelationCopyOption>)

Indicates that the entity should be copied with the specified relations.

Declaration
IEntityCopyOptionsBuilder WithRelations(IEnumerable<IRelationCopyOption> relations)
Parameters
TypeNameDescription
IEnumerable<>IRelationCopyOptionrelations

The relations collection.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

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