Class EntityLoadConfiguration
Represents a loading configuration for loading entities.
Inheritance
Implements
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
Type | Name | Description |
---|---|---|
ICultureLoadOption | cultureOption |
Culture load option. |
IPropertyLoadOption | propertyOption |
Property load option. |
IRelationLoadOption | relationOption |
Relation load option. |
Properties
CultureLoadOption
Gets or sets the culture load option.
Declaration
public ICultureLoadOption CultureLoadOption { get; set; }
Property Value
Type | Description |
---|---|
ICultureLoadOption |
Default
Gets the entity in the default culture, with all properties and no relations.
Declaration
public static IEntityLoadConfiguration Default { get; }
Property Value
Type | Description |
---|---|
IEntityLoadConfiguration |
DefaultCultureFull
Gets the entity in default culture, with all properties and all relations.
Declaration
public static IEntityLoadConfiguration DefaultCultureFull { get; }
Property Value
Type | Description |
---|---|
IEntityLoadConfiguration |
Full
Gets the entity in all installed cultures, with all properties and all relations.
Declaration
public static IEntityLoadConfiguration Full { get; }
Property Value
Type | Description |
---|---|
IEntityLoadConfiguration |
Minimal
Gets teh entity only with system entity properties.
Declaration
public static IEntityLoadConfiguration Minimal { get; }
Property Value
Type | Description |
---|---|
IEntityLoadConfiguration |
PropertyLoadOption
Gets or sets the property load option.
Declaration
public IPropertyLoadOption PropertyLoadOption { get; set; }
Property Value
Type | Description |
---|---|
IPropertyLoadOption |
RelationLoadOption
Gets or sets the relation load option.
Declaration
public IRelationLoadOption RelationLoadOption { get; set; }
Property Value
Type | Description |
---|---|
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
Type | Description |
---|---|
IEntityLoadConfigurationBuilder |
The entity load configuration builder. |
DeepClone()
Creates a deep clone of this instance.
Declaration
public IEntityLoadConfiguration DeepClone()
Returns
Type | Description |
---|---|
IEntityLoadConfiguration |
The entity load configuration. |
DeepEquals(IEntityLoadConfiguration)
Checks if this instance of IEntityLoadConfiguration is equal to other
.
Declaration
public bool DeepEquals(IEntityLoadConfiguration other)
Parameters
Type | Name | Description |
---|---|---|
IEntityLoadConfiguration | other |
The entity load configuration. |
Returns
Type | Description |
---|---|
bool |
langword_csharp_True if the instances are equal; otherwise langword_csharp_False. |