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 | |
---|---|---|
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
Name | Description | |
---|---|---|
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
Name | Description | |
---|---|---|
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. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
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. |
|
MemberwiseClone() | (Inherited from Object.) |
|
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. |
|
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. |
|
ToString() | (Inherited from Object.) |
|
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