TableController<TData>.InsertAsync Method (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.
Namespace: Microsoft.WindowsAzure.Mobile.Service
Assembly: Microsoft.WindowsAzure.Mobile.Service.Tables (in Microsoft.WindowsAzure.Mobile.Service.Tables.dll)
Syntax
protected virtual Task<TData> InsertAsync(
TData item
)
protected:
virtual Task<TData>^ InsertAsync(
TData item
)
abstract InsertAsync :
item:'TData -> Task<'TData>
override InsertAsync :
item:'TData -> Task<'TData>
Protected Overridable Function InsertAsync (
item As TData
) As Task(Of TData)
Return Value
Type: System.Threading.Tasks.Task<TData>
A Task<TResult> representing the insert operation executed by the the IDomainManager<TData>.
See Also
TableController<TData> Class
Microsoft.WindowsAzure.Mobile.Service Namespace
Return to top