1. Stylelabs.M.Framework.Essentials.LoadConfigurations

Class EntityLoadConfigurationBuilder

Default implementation of IEntityLoadConfigurationBuilder.

Inheritance

object

EntityLoadConfigurationBuilder

Implements

IEntityLoadConfigurationBuilder

Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadConfigurations

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class EntityLoadConfigurationBuilder : IEntityLoadConfigurationBuilder

Constructors

EntityLoadConfigurationBuilder()

Initializes a new instance of the EntityLoadConfigurationBuilder class. The builder will build a completely new EntityLoadConfiguration.

Declaration

public EntityLoadConfigurationBuilder()

EntityLoadConfigurationBuilder(IEntityLoadConfiguration)

Initializes a new instance of the EntityLoadConfigurationBuilder class. The builder will extend or overwrite an existing EntityLoadConfiguration.

Declaration

public EntityLoadConfigurationBuilder(IEntityLoadConfiguration entityLoadConfiguration)

Parameters

TypeNameDescription
IEntityLoadConfigurationentityLoadConfigurationThe existing EntityLoadConfiguration to extend or overwrite.

Methods

Build()

Gets the resulting instance of IEntityLoadConfiguration.

Declaration

public IEntityLoadConfiguration Build()

Returns

TypeDescription
IEntityLoadConfigurationThe builder.

InCulture(CultureInfo)

Indicates that entities should be loaded in the specified culture.

Declaration

public IEntityLoadConfigurationBuilder InCulture(CultureInfo culture)

Parameters

TypeNameDescription
CultureInfocultureThe culture.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

InCultures(params CultureInfo[])

Indicates that entities should be loaded in the specified cultures.

Declaration

public IEntityLoadConfigurationBuilder InCultures(params CultureInfo[] cultures)

Parameters

TypeNameDescription
CultureInfoculturesThe cultures.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

InCultures(IEnumerable)

Indicates that entities should be loaded in the specified cultures.

Declaration

public IEntityLoadConfigurationBuilder InCultures(IEnumerable<CultureInfo> cultures)

Parameters

TypeNameDescription
IEnumerable<>CultureInfoculturesThe cultures.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

InCultures(LoadOption)

Indicates that entities should be loaded int the cultures specified by LoadOption.

Declaration

public IEntityLoadConfigurationBuilder InCultures(LoadOption loadOption)

Parameters

TypeNameDescription
LoadOptionloadOptionThe load option.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithProperties(IEnumerable)

Indicates that entities should be loaded with the specified properties.

Declaration

public IEntityLoadConfigurationBuilder WithProperties(IEnumerable<string> properties)

Parameters

TypeNameDescription
IEnumerable<>stringpropertiesThe properties.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithProperties(LoadOption)

Indicates that entities should be loaded with the properties specified by loadOption.

Declaration

public IEntityLoadConfigurationBuilder WithProperties(LoadOption loadOption)

Parameters

TypeNameDescription
LoadOptionloadOptionThe load option.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithProperties(params string[])

Indicates that entities should be loaded with the specified properties.

Declaration

public IEntityLoadConfigurationBuilder WithProperties(params string[] properties)

Parameters

TypeNameDescription
stringpropertiesThe properties.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithProperty(string)

Indicates that entities should be loaded with the specified property.

Declaration

public IEntityLoadConfigurationBuilder WithProperty(string property)

Parameters

TypeNameDescription
stringpropertyThe property.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithRelation(string, RelationRole?)

Indicates that entities should be loaded with the specified relation in the specified role.

Declaration

public IEntityLoadConfigurationBuilder WithRelation(string relation, RelationRole? role)

Parameters

TypeNameDescription
stringrelationThe relation.
RelationRoleroleThe role.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithRelation(string)

Indicates that entities should be loaded with the specified relation.

Declaration

public IEntityLoadConfigurationBuilder WithRelation(string relation)

Parameters

TypeNameDescription
stringrelationThe relations.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithRelations(IEnumerable)

Indicates that entities should be loaded with the relations specified by specifications.

Declaration

public IEntityLoadConfigurationBuilder WithRelations(IEnumerable<RelationSpecification> specs)

Parameters

TypeNameDescription
IEnumerable<>RelationSpecificationspecs

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithRelations(IEnumerable)

Indicates that entities should be loaded with the specified relations.

Declaration

public IEntityLoadConfigurationBuilder WithRelations(IEnumerable<string> relations)

Parameters

TypeNameDescription
IEnumerable<>stringrelationsThe relations.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithRelations(LoadOption)

Indicates that entities should be loaded with the properties specified by loadOption.

Declaration

public IEntityLoadConfigurationBuilder WithRelations(LoadOption loadOption)

Parameters

TypeNameDescription
LoadOptionloadOptionThe load option.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithRelations(params RelationSpecification[])

Indicates that entities should be loaded with the relations specified by specifications.

Declaration

public IEntityLoadConfigurationBuilder WithRelations(params RelationSpecification[] specs)

Parameters

TypeNameDescription
RelationSpecificationspecs

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

WithRelations(params string[])

Indicates that entities should be loaded with the specified relations.

Declaration

public IEntityLoadConfigurationBuilder WithRelations(params string[] relations)

Parameters

TypeNameDescription
stringrelationsThe relations.

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe builder.

Implements

IEntityLoadConfigurationBuilder

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