1. Stylelabs.M.Framework.Essentials.LoadConfigurations

Class QueryLoadConfiguration

Represents a loading configuration for querying ids or entities.

Inheritance

object

QueryLoadConfiguration

Implements

IQueryLoadConfiguration

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

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class QueryLoadConfiguration : IQueryLoadConfiguration

Constructors

QueryLoadConfiguration()

Initializes a new instance of the QueryLoadConfiguration class. Loads no entities by default.

Declaration

public QueryLoadConfiguration()

QueryLoadConfiguration(IQueryLoadConfiguration)

Initializes a new instance of the QueryLoadConfiguration class.

Declaration

public QueryLoadConfiguration(IQueryLoadConfiguration configuration)

Parameters

TypeNameDescription
IQueryLoadConfigurationconfigurationThe load configuration.

QueryLoadConfiguration(ICultureLoadOption, IPropertyLoadOption, IRelationLoadOption)

Initializes a new instance of the QueryLoadConfiguration class. Loads entities by default.

Declaration

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

Parameters

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

QueryLoadConfiguration(bool, ICultureLoadOption, IPropertyLoadOption, IRelationLoadOption)

Initializes a new instance of the QueryLoadConfiguration class.

Declaration

public QueryLoadConfiguration(bool loadEntities, ICultureLoadOption cultureOption, IPropertyLoadOption propertyOption, IRelationLoadOption relationOption)

Parameters

TypeNameDescription
boolloadEntitiesLoad entities.
ICultureLoadOptioncultureOptionCulture load option.
IPropertyLoadOptionpropertyOptionProperty load option.
IRelationLoadOptionrelationOptionRelation load option.

Properties

Gets the culture load option.

Declaration

public ICultureLoadOption CultureLoadOption { get; set; }

Property Value

TypeDescription
ICultureLoadOption

Default

Gets the query result entities in default culture, with all properties and no relations.

Declaration

public static IQueryLoadConfiguration Default { get; }

Property Value

DefaultCultureFull

Gets the query result entities in default culture, with all properties and all relations.

Declaration

public static IQueryLoadConfiguration DefaultCultureFull { get; }

Property Value

Full

Gets the query result entities in all installed cultures, with all properties and all relations.

Declaration

public static IQueryLoadConfiguration Full { get; }

Property Value

Ids

Gets the query result will only contain ids.

Declaration

public static IQueryLoadConfiguration Ids { get; }

Property Value

LoadEntities

Gets a value indicating whether entities or ids need to be returned. If false, no entities will be loaded, and the load options will be ignored.

Declaration

public bool LoadEntities { get; set; }

Property Value

TypeDescription
bool

Minimal

Gets only the base entity properties.

Declaration

public static IQueryLoadConfiguration Minimal { get; }

Property Value

Gets the property load option.

Declaration

public IPropertyLoadOption PropertyLoadOption { get; set; }

Property Value

TypeDescription
IPropertyLoadOption

Gets the relation load option.

Declaration

public IRelationLoadOption RelationLoadOption { get; set; }

Property Value

TypeDescription
IRelationLoadOption

Implements

IQueryLoadConfiguration

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