logo
logo

Class FluentClient

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

Inheritance
System.Object
FluentClient
Namespace: Stylelabs.M.Sdk.Fluent
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
public class FluentClient : object

Constructors

FluentClient(IMClient)

Initializes a new instance of the FluentClient class.

Declaration
public FluentClient(IMClient client)
Parameters
Type Name Description
IMClient client

The underlying IMClient instance.

Properties

Entities

Provides access to entities in a fluent way.

Declaration
public FluentEntities Entities { get; }
Property Value
Type Description
FluentEntities

EntityDefinitions

Provides access to entity definitions in a fluent way.

Declaration
public FluentEntityDefinitions EntityDefinitions { get; }
Property Value
Type Description
FluentEntityDefinitions

EntityFactory

Provides access to the entity factory in a fluent way.

Declaration
public FluentEntityFactory EntityFactory { get; }
Property Value
Type Description
FluentEntityFactory

EntityLoadConfiguration

Gets the IEntityLoadConfiguration instance.

Declaration
public IEntityLoadConfiguration EntityLoadConfiguration { get; }
Property Value
Type Description
IEntityLoadConfiguration

Settings

Provides access to settings in a fluent way.

Declaration
public FluentSettings Settings { get; }
Property Value
Type Description
FluentSettings

Users

Provides access to users in a fluent way.

Declaration
public FluentUsers Users { get; }
Property Value
Type Description
FluentUsers

Methods

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

Gets the FluentQueryableEntities instance.

Declaration
public FluentQueryableEntities QueryableEntities(Func<QueryableEntities<IQueryableEntity>, IQueryable<IQueryableEntity>> queryFunc)
Parameters
Type Name Description
Func<QueryableEntities<IQueryableEntity>, IQueryable<IQueryableEntity>> queryFunc
Returns
Type Description
FluentQueryableEntities

UseCultureLoadOption(CultureInfo[])

Sets the ICultureLoadOption for the current FluentClient instance.

Declaration
public FluentClient UseCultureLoadOption(params CultureInfo[] cultures)
Parameters
Type Name Description
CultureInfo[] cultures
Returns
Type Description
FluentClient

UseCultureLoadOption(LoadOption)

Sets the ICultureLoadOption for the current FluentClient instance.

Declaration
public FluentClient UseCultureLoadOption(LoadOption loadOption)
Parameters
Type Name Description
LoadOption loadOption
Returns
Type Description
FluentClient

UseCultureLoadOption(String[])

Sets the ICultureLoadOption for the current FluentClient instance.

Declaration
public FluentClient UseCultureLoadOption(params string[] cultures)
Parameters
Type Name Description
System.String[] cultures
Returns
Type Description
FluentClient

UsePropertyLoadOption(LoadOption)

Sets the IPropertyLoadOption for the current FluentClient instance.

Declaration
public FluentClient UsePropertyLoadOption(LoadOption loadOption)
Parameters
Type Name Description
LoadOption loadOption
Returns
Type Description
FluentClient

UsePropertyLoadOption(String[])

Sets the IPropertyLoadOption for the current FluentClient instance.

Declaration
public FluentClient UsePropertyLoadOption(params string[] properties)
Parameters
Type Name Description
System.String[] properties
Returns
Type Description
FluentClient

UseRelationLoadOption(LoadOption)

Sets the IRelationLoadOption for the current FluentClient instance.

Declaration
public FluentClient UseRelationLoadOption(LoadOption loadOption)
Parameters
Type Name Description
LoadOption loadOption
Returns
Type Description
FluentClient

UseRelationLoadOption(RelationSpecification[])

Sets the IRelationLoadOption for the current FluentClient instance.

Declaration
public FluentClient UseRelationLoadOption(params RelationSpecification[] relations)
Parameters
Type Name Description
RelationSpecification[] relations
Returns
Type Description
FluentClient

Extension Methods

Can we improve this article ? Provide feedback