Class FluentClient
Provides a fluent interface for commonly used operations of the IMClient.
Inheritance
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
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<, >QueryableEntitiesIQueryableEntityIQueryable`1IQueryableEntity | queryFunc |
A function. |
Returns
Type | Description |
---|---|
FluentQueryableEntities |
UseCultureLoadOption(params CultureInfo[])
Sets the ICultureLoadOption for the current FluentClient instance.
Declaration
public FluentClient UseCultureLoadOption(params CultureInfo[] cultures)
Parameters
Type | Name | Description |
---|---|---|
CultureInfo | cultures |
The cultures. |
Returns
Type | Description |
---|---|
FluentClient |
The FluentClient. |
UseCultureLoadOption(LoadOption)
Sets the ICultureLoadOption for the current FluentClient instance.
Declaration
public FluentClient UseCultureLoadOption(LoadOption loadOption)
Parameters
Type | Name | Description |
---|---|---|
LoadOption | loadOption |
The load option. |
Returns
Type | Description |
---|---|
FluentClient |
The FluentClient. |
UseCultureLoadOption(params string[])
Sets the ICultureLoadOption for the current FluentClient instance.
Declaration
public FluentClient UseCultureLoadOption(params string[] cultures)
Parameters
Type | Name | Description |
---|---|---|
string | cultures |
The cultures. |
Returns
Type | Description |
---|---|
FluentClient |
The FluentClient. |
UsePropertyLoadOption(LoadOption)
Sets the IPropertyLoadOption for the current FluentClient instance.
Declaration
public FluentClient UsePropertyLoadOption(LoadOption loadOption)
Parameters
Type | Name | Description |
---|---|---|
LoadOption | loadOption |
The load option. |
Returns
Type | Description |
---|---|
FluentClient |
The FluentClient. |
UsePropertyLoadOption(params string[])
Sets the IPropertyLoadOption for the current FluentClient instance.
Declaration
public FluentClient UsePropertyLoadOption(params string[] properties)
Parameters
Type | Name | Description |
---|---|---|
string | properties |
The properties. |
Returns
Type | Description |
---|---|
FluentClient |
The FluentClient. |
UseRelationLoadOption(LoadOption)
Sets the IRelationLoadOption for the current FluentClient instance.
Declaration
public FluentClient UseRelationLoadOption(LoadOption loadOption)
Parameters
Type | Name | Description |
---|---|---|
LoadOption | loadOption |
The load option. |
Returns
Type | Description |
---|---|
FluentClient |
The FluentClient. |
UseRelationLoadOption(params RelationSpecification[])
Sets the IRelationLoadOption for the current FluentClient instance.
Declaration
public FluentClient UseRelationLoadOption(params RelationSpecification[] relations)
Parameters
Type | Name | Description |
---|---|---|
RelationSpecification | relations |
The relations. |
Returns
Type | Description |
---|---|
FluentClient |
The FluentClient. |