TableController<TData> Class

Definition

Provides a common ApiController abstraction for Table Controllers.

public abstract class TableController<TData> : Microsoft.Azure.Mobile.Server.Tables.TableController where TData : class, ITableData
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>

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.

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.

Initialize(HttpControllerContext) System.Web.Http.ApiController.Initialize(System.Web.Http.Controllers.HttpControllerContext)
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)

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, 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.

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