Class FluentClient

Current version: 3.4

Provides a fluent interface for commonly used operations of the IMClient.

Inheritance
object
FluentClient
Namespace: StylelabsStylelabs.MSdkFluent
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
RequestResponse
public class FluentClient

Constructors

FluentClient(IMClient)

Initializes a new instance of the FluentClient class.

Declaration
RequestResponse
public FluentClient(IMClient client)
Parameters
TypeNameDescription
IMClientclient

The underlying IMClient instance.

Properties

Entities

Provides access to entities in a fluent way.

Declaration
RequestResponse
public FluentEntities Entities { get; }
Property Value
TypeDescription
FluentEntities

EntityDefinitions

Provides access to entity definitions in a fluent way.

Declaration
RequestResponse
public FluentEntityDefinitions EntityDefinitions { get; }
Property Value
TypeDescription
FluentEntityDefinitions

EntityFactory

Provides access to the entity factory in a fluent way.

Declaration
RequestResponse
public FluentEntityFactory EntityFactory { get; }
Property Value
TypeDescription
FluentEntityFactory

EntityLoadConfiguration

Gets the IEntityLoadConfiguration instance.

Declaration
RequestResponse
public IEntityLoadConfiguration EntityLoadConfiguration { get; }
Property Value
TypeDescription
IEntityLoadConfiguration

Settings

Provides access to settings in a fluent way.

Declaration
RequestResponse
public FluentSettings Settings { get; }
Property Value
TypeDescription
FluentSettings

Users

Provides access to users in a fluent way.

Declaration
RequestResponse
public FluentUsers Users { get; }
Property Value
TypeDescription
FluentUsers

Methods

QueryableEntities(Func<QueryableEntities<IQueryableEntity>, IQueryable<IQueryableEntity>>)

Gets the FluentQueryableEntities instance.

Declaration
RequestResponse
public FluentQueryableEntities QueryableEntities(Func<QueryableEntities<IQueryableEntity>, IQueryable<IQueryableEntity>> queryFunc)
Parameters
TypeNameDescription
Func<, >QueryableEntitiesIQueryableEntityIQueryable`1IQueryableEntityqueryFunc

A function.

Returns

UseCultureLoadOption(params CultureInfo[])

Sets the ICultureLoadOption for the current FluentClient instance.

Declaration
RequestResponse
public FluentClient UseCultureLoadOption(params CultureInfo[] cultures)
Parameters
TypeNameDescription
CultureInfocultures

The cultures.

Returns
TypeDescription
FluentClient

The FluentClient.

UseCultureLoadOption(LoadOption)

Sets the ICultureLoadOption for the current FluentClient instance.

Declaration
RequestResponse
public FluentClient UseCultureLoadOption(LoadOption loadOption)
Parameters
TypeNameDescription
LoadOptionloadOption

The load option.

Returns
TypeDescription
FluentClient

The FluentClient.

UseCultureLoadOption(params string[])

Sets the ICultureLoadOption for the current FluentClient instance.

Declaration
RequestResponse
public FluentClient UseCultureLoadOption(params string[] cultures)
Parameters
TypeNameDescription
stringcultures

The cultures.

Returns
TypeDescription
FluentClient

The FluentClient.

UsePropertyLoadOption(LoadOption)

Sets the IPropertyLoadOption for the current FluentClient instance.

Declaration
RequestResponse
public FluentClient UsePropertyLoadOption(LoadOption loadOption)
Parameters
TypeNameDescription
LoadOptionloadOption

The load option.

Returns
TypeDescription
FluentClient

The FluentClient.

UsePropertyLoadOption(params string[])

Sets the IPropertyLoadOption for the current FluentClient instance.

Declaration
RequestResponse
public FluentClient UsePropertyLoadOption(params string[] properties)
Parameters
TypeNameDescription
stringproperties

The properties.

Returns
TypeDescription
FluentClient

The FluentClient.

UseRelationLoadOption(LoadOption)

Sets the IRelationLoadOption for the current FluentClient instance.

Declaration
RequestResponse
public FluentClient UseRelationLoadOption(LoadOption loadOption)
Parameters
TypeNameDescription
LoadOptionloadOption

The load option.

Returns
TypeDescription
FluentClient

The FluentClient.

UseRelationLoadOption(params RelationSpecification[])

Sets the IRelationLoadOption for the current FluentClient instance.

Declaration
RequestResponse
public FluentClient UseRelationLoadOption(params RelationSpecification[] relations)
Parameters
TypeNameDescription
RelationSpecificationrelations

The relations.

Returns
TypeDescription
FluentClient

The FluentClient.

Extension Methods

Do you have some feedback for us?

If you have suggestions for improving this article,