1. FluentClient

Class FluentClient

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

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

Constructors

FluentClient(IMClient)

Initializes a new instance of the FluentClient class.

Declaration
public FluentClient(IMClient client)
Parameters
TypeNameDescription
IMClientclient

The underlying IMClient instance.

Properties

Entities

Provides access to entities in a fluent way.

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

EntityDefinitions

Provides access to entity definitions in a fluent way.

Declaration
public FluentEntityDefinitions EntityDefinitions { get; }
Property Value

EntityFactory

Provides access to the entity factory in a fluent way.

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

EntityLoadConfiguration

Gets the IEntityLoadConfiguration instance.

Declaration
public IEntityLoadConfiguration EntityLoadConfiguration { get; }
Property Value

Settings

Provides access to settings in a fluent way.

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

Users

Provides access to users in a fluent way.

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

Methods

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

Gets the FluentQueryableEntities instance.

Declaration
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
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
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
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
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
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
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
public FluentClient UseRelationLoadOption(params RelationSpecification[] relations)
Parameters
TypeNameDescription
RelationSpecificationrelations

The relations.

Returns
TypeDescription
FluentClient

The FluentClient.

Extension Methods

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