Share via


ObjectResult Class

Definition

This class implements IEnumerable and IDisposable. Instance of this class is returned from ObjectQuery.Execute method.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
public abstract class ObjectResult : IDisposable, System.Collections.IEnumerable, System.ComponentModel.IListSource, System.Data.Entity.Infrastructure.IDbAsyncEnumerable
type ObjectResult = class
    interface IEnumerable
    interface IDisposable
    interface IListSource
    interface IDbAsyncEnumerable
Public MustInherit Class ObjectResult
Implements IDbAsyncEnumerable, IDisposable, IEnumerable, IListSource
Inheritance
ObjectResult
Derived
Attributes
Implements

Constructors

ObjectResult()

This constructor is intended only for use when creating test doubles that will override members with mocked or faked behavior. Use of this constructor for other purposes may result in unexpected behavior including but not limited to throwing NullReferenceException.

Properties

ElementType

When overridden in a derived class, gets the type of the generic ObjectResult<T> .

Methods

Dispose()

Performs tasks associated with freeing, releasing, or resetting resources.

Dispose(Boolean)

Releases the resources used by the object result.

GetNextResult<TElement>()

Gets the next result set of a stored procedure.

Explicit Interface Implementations

IDbAsyncEnumerable.GetAsyncEnumerator()

Gets an enumerator that can be used to asynchronously enumerate the sequence.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the query results.

IListSource.ContainsListCollection

IListSource.ContainsListCollection implementation. Always returns false.

IListSource.GetList()

Returns the results in a format useful for data binding.

Applies to