DomainManager<TData> Class

Definition

Provides an abstraction for accessing a backend store for a TableController<TData>. The abstraction can be implemented in one of two ways depending on the capabilities of the backend store. Stores that support a IQueryable<T>-based model can implement the Query and Lookup methods whereas stores that don't support IQueryable directly or where it is not the preferred way of accessing them can implement the QueryAsync and LookupAsync methods.

public abstract class DomainManager<TData> : Microsoft.Azure.Mobile.Server.Tables.IDomainManager<TData> where TData : class, ITableData
type DomainManager<'Data (requires 'Data : null and 'Data :> ITableData)> = class
    interface IDomainManager<'Data (requires 'Data : null and 'Data :> ITableData)>
Public MustInherit Class DomainManager(Of TData)
Implements IDomainManager(Of TData)

Type Parameters

TData

The data object (DTO) type.

Inheritance
DomainManager<TData>
Derived
Implements

Constructors

DomainManager<TData>(HttpRequestMessage, Boolean)

Creates a new instance of DomainManager<TData>

Properties

EnableSoftDelete

Determines whether rows are hard deleted or marked as deleted. False by default.

IncludeDeleted

Determines whether soft deleted records are included in query results. True by default.

Request

Instance of HttpRequestMessage

Methods

DeleteAsync(String)

Deletes an existing item

InsertAsync(TData)

Inserts an item to the backend store.

Lookup(String)

Builds an IQueryable<T> to be executed against a store supporting IQueryable<T> for looking up a single item.

LookupAsync(String)

Looks up a single item in the backend store.

Query()

Builds an IQueryable<T> to be executed against a store supporting IQueryable<T> for querying data.

QueryAsync(ODataQueryOptions)

Executes the provided query against a store.

ReplaceAsync(String, TData)

Completely replaces an existing item.

UndeleteAsync(String, Delta<TData>)

Undeletes and optionally updates a soft deleted item by applying a System.Web.Http.OData.Delta`1 patch to it. The System.Web.Http.OData.Delta`1 abstraction keeps track of which properties have changed which avoids problems with default values and the like.

UpdateAsync(String, Delta<TData>)

Updates an existing item by applying a System.Web.Http.OData.Delta`1 patch to it. The System.Web.Http.OData.Delta`1 abstraction keeps track of which properties have changed which avoids problems with default values and the like.

Applies to