Share via


TableController<TData> Class

Definition

Provides a common ApiController abstraction for Table Controllers.

[Microsoft.WindowsAzure.Mobile.Service.Tables.TableControllerConfig]
public abstract class TableController<TData> : Microsoft.WindowsAzure.Mobile.Service.Tables.TableController where TData : class, ITableData
[<Microsoft.WindowsAzure.Mobile.Service.Tables.TableControllerConfig>]
type TableController<'Data (requires 'Data : null and 'Data :> ITableData)> = class
    inherit TableController
Public MustInherit Class TableController(Of TData)
Inherits TableController

Type Parameters

TData

The type of the entity.

Inheritance
TableController<TData>
Attributes

Constructors

TableController<TData>()

Initializes a new instance of the TableController<TData> class.

TableController<TData>(IDomainManager<TData>)

Initializes a new instance of the TableController<TData> class with a given domainManager.

Properties

DomainManager

Gets or sets the IDomainManager<TData> to be used for accessing the backend store.

Services

Get or Set the ApiServices associated with this controller instance.

(Inherited from TableController)

Methods

DeleteAsync(String)

Provides a helper method for deleting an entity from a backend store. It deals with any
exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

InsertAsync(TData)

Provides a helper method for inserting an entity into a backend store. It deals with any model validation errors as well as exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

Lookup(String)

Provides a helper method for looking up an entity in a backend store. It deals with any exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

LookupAsync(String)

Provides a helper method for looking up an entity in a backend store. It deals with any exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

Query()

Provides a helper method for querying a backend store. It deals with any exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

QueryAsync(ODataQueryOptions)

Provides a helper method for querying a backend store. It deals with any exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

ReplaceAsync(String, TData)

Provides a helper method for replacing an entity in a backend store. It deals with any model validation errors as well as exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

UndeleteAsync(String, Delta<TData>)

Provides a helper method for undeleting an entity in a backend store. It deals with any model validation errors as well as exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

UndeleteAsync(String)

Provides a helper method for undeleting an entity in a backend store. It deals with any model validation errors as well as exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

UpdateAsync(String, Delta<TData>)

Provides a helper method for updating an entity in a backend store. It deals with any model validation errors as well as exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

Applies to