EntityDomainManager<TData> Class

Definition

Provides a DomainManager<TData> implementation targeting SQL as the backend store using Entity Framework. In this model, there is a 1:1 mapping between the data object (DTO) exposed through a TableController<TData> and the domain model. The MappedEntityDomainManager<TData,TModel> is the recommended DomainManager<TData> for situations where there is not a 1:1 relationship between the Data Object (DTO) and the domain model managed by SQL.

public class EntityDomainManager<TData> : Microsoft.Azure.Mobile.Server.Tables.DomainManager<TData> where TData : class, ITableData
type EntityDomainManager<'Data (requires 'Data : null and 'Data :> ITableData)> = class
    inherit DomainManager<'Data (requires 'Data : null and 'Data :> ITableData)>
Public Class EntityDomainManager(Of TData)
Inherits DomainManager(Of TData)

Type Parameters

TData

The data object (DTO) type.

Inheritance
System.Object
EntityDomainManager<TData>

Constructors

EntityDomainManager<TData>(DbContext, HttpRequestMessage)

Creates a new instance of EntityDomainManager<TData>

EntityDomainManager<TData>(DbContext, HttpRequestMessage, Boolean)

Creates a new instance of EntityDomainManager<TData>

Properties

Context
EnableSoftDelete

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

(Inherited from DomainManager<TData>)
IncludeDeleted

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

(Inherited from DomainManager<TData>)
Request

Instance of System.Net.Http.HttpRequestMessage

(Inherited from DomainManager<TData>)

Methods

DeleteAsync(String)
GetOriginalValue(DbUpdateConcurrencyException)

Gets the original value of an entity in case an update or replace operation resulted in an System.Data.Entity.Infrastructure.DbUpdateConcurrencyException. The original value extracted from the exception will get returned to the client so that it can merge the data and possibly try the operation again.

InsertAsync(TData)
Lookup(String)
LookupAsync(String)
Query()
QueryAsync(ODataQueryOptions)
ReplaceAsync(String, TData)
SubmitChangesAsync()

Submits the change through Entity Framework while logging any exceptions and produce appropriate System.Net.Http.HttpResponseMessage instances.

UndeleteAsync(String, Delta<TData>)
UpdateAsync(String, Delta<TData>)

Applies to