Share via


TableController<TData> Class

 

Provides a common ApiController abstraction for Table Controllers.

Namespace:   Microsoft.WindowsAzure.Mobile.Service
Assembly:  Microsoft.WindowsAzure.Mobile.Service.Tables (in Microsoft.WindowsAzure.Mobile.Service.Tables.dll)

Inheritance Hierarchy

System.Object
  System.Web.Http.ApiController
    Microsoft.WindowsAzure.Mobile.Service.Tables.TableController
      Microsoft.WindowsAzure.Mobile.Service.TableController<TData>

Syntax

[TableControllerConfigAttribute]
public abstract class TableController<TData> : TableController
where TData : class, ITableData
generic<typename TData>
where TData : ref class, ITableData
[TableControllerConfigAttribute]
public ref class TableController abstract : TableController
[<AbstractClass>]
[<TableControllerConfigAttribute>]
type TableController<'TData when 'TData : not struct and ITableData> = 
    class
        inherit TableController
    end
<TableControllerConfigAttribute>
Public MustInherit Class TableController(Of TData As { Class, ITableData })
    Inherits TableController

Type Parameters

  • TData
    The type of the entity.

Constructors

Name Description
System_CAPS_protmethod TableController<TData>()

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

System_CAPS_protmethod TableController<TData>(IDomainManager<TData>)

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

Properties

Name Description
System_CAPS_protproperty DomainManager

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

System_CAPS_pubproperty Services

Get or Set the ApiServices associated with this controller instance.(Inherited from TableController.)

Methods

Name Description
System_CAPS_protmethod 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.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

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

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

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

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

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

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service Namespace

Return to top