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 | |
---|---|---|
EntityDomainManager<TData>(DbContext, HttpRequestMessage, ApiServices) |
Properties
Name | Description | |
---|---|---|
Context | ||
Request | ||
Services |
Methods
Name | Description | |
---|---|---|
DeleteAsync(String) | ||
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
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. |
|
GetType() | (Inherited from Object.) |
|
InsertAsync(TData) | ||
Lookup(String) | ||
MemberwiseClone() | (Inherited from Object.) |
|
Query() | ||
ReplaceAsync(String, TData) | ||
SubmitChangesAsync() | Submits the change through Entity Framework while logging any exceptions and produce appropriate HttpResponseMessage instances. |
|
ToString() | (Inherited from Object.) |
|
UpdateAsync(String, Delta<TData>) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IDomainManager<TData>.LookupAsync(String) | ||
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