语言

ObjectResult<T> 类

定义

此类表示方法的结果 Execute(MergeOption) 。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
public class ObjectResult<T> : System.Data.Entity.Core.Objects.ObjectResult, System.Collections.Generic.IEnumerable<T>, System.Data.Entity.Infrastructure.IDbAsyncEnumerable<T>
type ObjectResult<'T> = class
    inherit ObjectResult
    interface seq<'T>
    interface IEnumerable
    interface IDbAsyncEnumerable<'T>
    interface IDbAsyncEnumerable
Public Class ObjectResult(Of T)
Inherits ObjectResult
Implements IDbAsyncEnumerable(Of T), IEnumerable(Of T)

类型参数

T

结果的类型。

继承
ObjectResult<T>
特性
实现

构造函数

名称 说明
ObjectResult<T>()

此构造函数仅用于创建测试双精度值,以替代具有模拟或伪造行为的成员。 出于其他目的使用此构造函数可能会导致意外行为,包括但不限于引发 NullReferenceException。

属性

名称 说明
ElementType

获取 ObjectResult<T>的类型。

方法

名称 说明
Dispose()

执行与释放、释放或重置资源关联的任务。

(继承自 ObjectResult)
Dispose(Boolean)

释放由托管资源使用 ObjectResult<T> 的非托管资源,并选择性地释放托管资源。

GetEnumerator()

返回循环访问查询结果的枚举器。

GetNextResult<TElement>()

获取存储过程的下一个结果集。

(继承自 ObjectResult)

显式接口实现

名称 说明
IDbAsyncEnumerable.GetAsyncEnumerator()

获取可用于异步枚举序列的枚举器。

(继承自 ObjectResult)
IDbAsyncEnumerable<T>.GetAsyncEnumerator()

获取可用于异步枚举序列的枚举器。

IEnumerable.GetEnumerator()

返回循环访问查询结果的枚举器。

(继承自 ObjectResult)
IListSource.ContainsListCollection

IListSource.ContainsListCollection 实现。 始终返回 false。

(继承自 ObjectResult)
IListSource.GetList()

以数据绑定有用的格式返回结果。

(继承自 ObjectResult)

适用于