1. Stylelabs.M.Framework.Essentials.LoadConfigurations

Class EntityLoadConfiguration

Represents a loading configuration for loading entities.

Inheritance

object

EntityLoadConfiguration

Implements

IEntityLoadConfiguration

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

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class EntityLoadConfiguration : IEntityLoadConfiguration

Constructors

EntityLoadConfiguration()

Initializes a new instance of the EntityLoadConfiguration class.

Declaration

public EntityLoadConfiguration()

EntityLoadConfiguration(ICultureLoadOption, IPropertyLoadOption, IRelationLoadOption)

Initializes a new instance of the EntityLoadConfiguration class.

Declaration

public EntityLoadConfiguration(ICultureLoadOption cultureOption, IPropertyLoadOption propertyOption, IRelationLoadOption relationOption)

Parameters

TypeNameDescription
ICultureLoadOptioncultureOptionCulture load option.
IPropertyLoadOptionpropertyOptionProperty load option.
IRelationLoadOptionrelationOptionRelation load option.

Properties

Gets or sets the culture load option.

Declaration

public ICultureLoadOption CultureLoadOption { get; set; }

Property Value

TypeDescription
ICultureLoadOption

Default

Gets the entity in the default culture, with all properties and no relations.

Declaration

public static IEntityLoadConfiguration Default { get; }

Property Value

DefaultCultureFull

Gets the entity in default culture, with all properties and all relations.

Declaration

public static IEntityLoadConfiguration DefaultCultureFull { get; }

Property Value

Full

Gets the entity in all installed cultures, with all properties and all relations.

Declaration

public static IEntityLoadConfiguration Full { get; }

Property Value

Minimal

Gets teh entity only with system entity properties.

Declaration

public static IEntityLoadConfiguration Minimal { get; }

Property Value

Gets or sets the property load option.

Declaration

public IPropertyLoadOption PropertyLoadOption { get; set; }

Property Value

TypeDescription
IPropertyLoadOption

Gets or sets the relation load option.

Declaration

public IRelationLoadOption RelationLoadOption { get; set; }

Property Value

TypeDescription
IRelationLoadOption

Methods

Builder()

Creates a IEntityLoadConfigurationBuilder from the current IEntityLoadConfiguration. The builder can extend or overwrite the configuration of the current IEntityLoadConfiguration.

Declaration

public IEntityLoadConfigurationBuilder Builder()

Returns

TypeDescription
IEntityLoadConfigurationBuilderThe entity load configuration builder.

DeepClone()

Creates a deep clone of this instance.

Declaration

public IEntityLoadConfiguration DeepClone()

Returns

TypeDescription
IEntityLoadConfigurationThe entity load configuration.

DeepEquals(IEntityLoadConfiguration)

Checks if this instance of IEntityLoadConfiguration is equal to other.

Declaration

public bool DeepEquals(IEntityLoadConfiguration other)

Parameters

TypeNameDescription
IEntityLoadConfigurationotherThe entity load configuration.

Returns

TypeDescription
boollangword_csharp_True if the instances are equal; otherwise langword_csharp_False.

Implements

IEntityLoadConfiguration

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