Share via


EntityDomainManager<TData> Class

 

Provides an IDomainManager<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 IDomainManager<TData> for situations where there is not a 1:1 relationship between the Data Object (DTO) and the domain model managed by SQL.

Namespace:   Microsoft.WindowsAzure.Mobile.Service
Assembly:  Microsoft.WindowsAzure.Mobile.Service.Entity (in Microsoft.WindowsAzure.Mobile.Service.Entity.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Mobile.Service.EntityDomainManager<TData>

Syntax

public class EntityDomainManager<TData> : IDomainManager<TData>
where TData : class, ITableData
generic<typename TData>
where TData : ref class, ITableData
public ref class EntityDomainManager : IDomainManager<TData>
type EntityDomainManager<'TData when 'TData : not struct and ITableData> = 
    class
        interface IDomainManager<'TData>
    end
Public Class EntityDomainManager(Of TData As { Class, ITableData })
    Implements IDomainManager(Of TData)

Type Parameters

  • TData
    The data object (DTO) type.

Constructors

Name Description
System_CAPS_pubmethod EntityDomainManager<TData>(DbContext, HttpRequestMessage, ApiServices)

Properties

Name Description
System_CAPS_pubproperty Context

System_CAPS_pubproperty Request

System_CAPS_pubproperty Services

Methods

Name Description
System_CAPS_pubmethod DeleteAsync(String)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_protmethod GetOriginalValue(DbUpdateConcurrencyException)

Gets the original value of an entity in case an update or replace operation resulted in an 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.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod InsertAsync(TData)

System_CAPS_pubmethod Lookup(String)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Query()

System_CAPS_pubmethod ReplaceAsync(String, TData)

System_CAPS_protmethod SubmitChangesAsync()

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

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod UpdateAsync(String, Delta<TData>)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IDomainManager<TData>.LookupAsync(String)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDomainManager<TData>.QueryAsync(ODataQueryOptions)

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