你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EntityDomainManager<TData> 类

定义

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

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)

类型参数

TData

数据对象 (DTO) 类型。

继承
EntityDomainManager<TData>

构造函数

EntityDomainManager<TData>(DbContext, HttpRequestMessage)

创建 EntityDomainManager<TData> 的新实例

EntityDomainManager<TData>(DbContext, HttpRequestMessage, Boolean)

创建 EntityDomainManager<TData> 的新实例

属性

Context

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

EnableSoftDelete

确定是硬删除行还是标记为已删除。 默认值为 False。

(继承自 DomainManager<TData>)
IncludeDeleted

确定软删除的记录是否包含在查询结果中。 默认值为 True。

(继承自 DomainManager<TData>)
Request

实例 HttpRequestMessage

(继承自 DomainManager<TData>)

方法

DeleteAsync(String)

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

GetOriginalValue(DbUpdateConcurrencyException)

获取实体的原始值,以防更新或替换操作导致 DbUpdateConcurrencyException。 从异常中提取的原始值将返回到客户端,以便它可以合并数据,并可能再次尝试该操作。

InsertAsync(TData)

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

Lookup(String)

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

LookupAsync(String)

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

Query()

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

QueryAsync(ODataQueryOptions)

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

ReplaceAsync(String, TData)

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

SubmitChangesAsync()

通过 Entity Framework 提交更改,同时记录任何异常并生成相应的 HttpResponseMessage 实例。

UndeleteAsync(String, Delta<TData>)

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

UpdateAsync(String, Delta<TData>)

DomainManager<TData>使用 Entity Framework 提供面向 SQL 作为后端存储的实现。 在此模型中,通过 TableController<TData> 和域模型公开的数据对象 (DTO) 之间存在 1:1 映射。 MappedEntityDomainManager<TData,TModel>如果数据对象 (DTO) 与 SQL 管理的域模型之间没有 1:1 关系,建议使用 DomainManager<TData>

适用于