Class QueryLoadConfiguration
Represents a loading configuration for querying ids or entities.
Inheritance
Implements
Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadConfigurations
Assembly: Stylelabs.M.Sdk.dll
Syntax
public class QueryLoadConfiguration : IQueryLoadConfigurationConstructors
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
| Type | Name | Description |
|---|---|---|
| IQueryLoadConfiguration | configuration |
The 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
| Type | Name | Description |
|---|---|---|
| ICultureLoadOption | cultureOption |
Culture load option. |
| IPropertyLoadOption | propertyOption |
Property load option. |
| IRelationLoadOption | relationOption |
Relation 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
| Type | Name | Description |
|---|---|---|
| bool | loadEntities |
Load entities. |
| ICultureLoadOption | cultureOption |
Culture load option. |
| IPropertyLoadOption | propertyOption |
Property load option. |
| IRelationLoadOption | relationOption |
Relation load option. |
Properties
CultureLoadOption
Gets the culture load option.
Declaration
public ICultureLoadOption CultureLoadOption { get; set; }Property Value
| Type | Description |
|---|---|
| ICultureLoadOption |
Default
Gets the query result entities in default culture, with all properties and no relations.
Declaration
public static IQueryLoadConfiguration Default { get; }Property Value
| Type | Description |
|---|---|
| IQueryLoadConfiguration |
DefaultCultureFull
Gets the query result entities in default culture, with all properties and all relations.
Declaration
public static IQueryLoadConfiguration DefaultCultureFull { get; }Property Value
| Type | Description |
|---|---|
| IQueryLoadConfiguration |
Full
Gets the query result entities in all installed cultures, with all properties and all relations.
Declaration
public static IQueryLoadConfiguration Full { get; }Property Value
| Type | Description |
|---|---|
| IQueryLoadConfiguration |
Ids
Gets the query result will only contain ids.
Declaration
public static IQueryLoadConfiguration Ids { get; }Property Value
| Type | Description |
|---|---|
| IQueryLoadConfiguration |
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
| Type | Description |
|---|---|
| bool |
Minimal
Gets only the base entity properties.
Declaration
public static IQueryLoadConfiguration Minimal { get; }Property Value
| Type | Description |
|---|---|
| IQueryLoadConfiguration |
PropertyLoadOption
Gets the property load option.
Declaration
public IPropertyLoadOption PropertyLoadOption { get; set; }Property Value
| Type | Description |
|---|---|
| IPropertyLoadOption |
RelationLoadOption
Gets the relation load option.
Declaration
public IRelationLoadOption RelationLoadOption { get; set; }Property Value
| Type | Description |
|---|---|
| IRelationLoadOption |