EntityDomainManager<TData> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.WindowsAzure.Mobile.Service.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
Constructors
EntityDomainManager<TData>(DbContext, HttpRequestMessage, ApiServices, Boolean) |
Creates a new instance of EntityDomainManager<TData> |
EntityDomainManager<TData>(DbContext, HttpRequestMessage, ApiServices) |
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 HttpRequestMessage (Inherited from DomainManager<TData>) |
Services |
Instance of ApiServices (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 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 HttpResponseMessage instances. |
UndeleteAsync(String, Delta<TData>) | |
UpdateAsync(String, Delta<TData>) |