[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.BaseODataCollectionViewServiceBuilder-3

BaseODataCollectionViewServiceBuilder<T, TControl, TBuilder> Class

Defines a builder to configurate BaseODataCollectionViewService<T>.

Inheritance
HideObjectMembers
BaseBuilder<TControl, TBuilder>
ComponentBuilder<TControl, TBuilder>
ServiceBuilder<TControl, TBuilder>
BaseCollectionViewServiceBuilder<T, TControl, TBuilder>
BaseODataCollectionViewServiceBuilder<T, TControl, TBuilder>
Implements
Namespace: C1.Web.Mvc.Fluent
Assembly: C1.Web.Mvc.dll
Syntax
public abstract class BaseODataCollectionViewServiceBuilder<T, TControl, TBuilder> : BaseCollectionViewServiceBuilder<T, TControl, TBuilder>, IHtmlString, ITemplateBuilder<TBuilder> where TControl : BaseODataCollectionViewService<T> where TBuilder : BaseODataCollectionViewServiceBuilder<T, TControl, TBuilder>
Type Parameters
Name Description
T
TControl
TBuilder

Constructors

Name Description
BaseODataCollectionViewServiceBuilder(TControl)

Creates one BaseODataCollectionViewServiceBuilder<T, TControl, TBuilder> instance to configurate component.

Methods

Name Description
DataType(string, DataType)

Configurates DataTypes. Sets an object to be used as a map for coercing data types when loading the data.

DataTypes(IDictionary<string, DataType>)

Configurates DataTypes. Sets an object to be used as a map for coercing data types when loading the data.

Expand(string)

Configurates Expand. Sets a string that specifies whether related entities should be included in the return data.

Fields(params string[])

Configurates Fields. Sets an array containing the names of the fields to retrieve from the data source.

FilterDefinition(string)

Configurates FilterDefinition. Sets a string containing an OData filter specification to be used for filtering the data on the server.

InferDataTypes(bool)

Configurates InferDataTypes. Sets a value that determines whether fields that contain strings that look like standard date representations should be converted to dates automatically.

JsonReviver(string)

Configurates JsonReviver. Sets a custom reviver function to use when parsing JSON values returned from the server.

Keys(params string[])

Configurates Keys. Sets an array containing the names of the key fields. Key fields are required for update operations (add/remove/delete).

ODataVersion(double?)

Configurates ODataVersion. Sets the OData version used by the server.

OnClientError(string)

Configurates the OnClientError client event. Occurs when there is an error reading or writing data.

OnClientLoaded(string)

Configurates the OnClientLoaded client event. Occurs when the BaseODataCollectionViewService<T> finishes loading data.

OnClientLoading(string)

Configurates the OnClientLoading client event. Occurs when the BaseODataCollectionViewService<T> starts loading data.

RequestHeader(string, object)

Configurates RequestHeaders. Sets an object containing request headers to be used when sending or requesting data. The most typical use for this property is in scenarios where authentication is required.

RequestHeaders(IDictionary<string, object>)

Configurates RequestHeaders. Sets an object containing request headers to be used when sending or requesting data. The most typical use for this property is in scenarios where authentication is required.

RequestHeaders(object)

Configurates RequestHeaders. Sets an object containing request headers to be used when sending or requesting data. The most typical use for this property is in scenarios where authentication is required.

ServiceUrl(string)

Configurates ServiceUrl. Sets the url of the OData service.

TableName(string)

Configurates TableName. Sets the name of the table (entity) that this collection is bound to.

Extension Methods