TableController<TData> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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 |
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
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for