[]
        
(Showing Draft Content)

C1.Web.Mvc.BaseODataCollectionViewService-1

BaseODataCollectionViewService<T> Class

Defines the base class for the collectionview used to bind OData service.

Namespace: C1.Web.Mvc
Assembly: C1.Web.Mvc.dll
Syntax
public abstract class BaseODataCollectionViewService<T> : BaseCollectionViewService<T>, IHtmlString, ITemplate, IItemsSource<T>
Type Parameters
Name Description
T

Constructors

Name Description
BaseODataCollectionViewService(HtmlHelper)

Creates one BaseODataCollectionViewService<T> instance.

Properties

Name Description
DataTypes

Gets or sets an object to be used as a map for coercing data types when loading the data.

Expand

Gets or sets a string that specifies whether related entities should be included in the return data.

Fields

Gets or sets an array containing the names of the fields to retrieve from the data source.

FilterDefinition

Gets or sets a string containing an OData filter specification to be used for filtering the data on the server.

InferDataTypes

Gets or sets a value that determines whether fields that contain strings that look like standard date representations should be converted to dates automatically.

JsonReviver

Gets or sets a custom reviver function to use when parsing JSON values returned from the server.

Keys

Gets or sets an array containing the names of the key fields. Key fields are required for update operations (add/remove/delete).

ODataVersion

Gets or sets the OData version used by the server.

OnClientError

Occurs when there is an error reading or writing data.

OnClientLoaded

Occurs when the BaseODataCollectionViewService<T> finishes loading data.

OnClientLoading

Occurs when the BaseODataCollectionViewService<T> starts loading data.

PageSize

Gets or sets the page size. 0 means to disable paging.

RequestHeaders

Gets or 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

Gets or sets the url of the OData service.

TableName

Gets or sets the name of the table (entity) that this collection is bound to.

UniqueId

Overrides to remove this attribute.

Extension Methods