Export (0) Print
Expand All

IEntityInstanceEnumerator Interface

Represents an enumerator interface that enables reading External Items from collections or streams.

Namespace:  Microsoft.BusinessData.Runtime
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

public interface IEntityInstanceEnumerator : IEnumerator<IEntityInstance>, 
	IDisposable, IEnumerator, ICloseable

Some operations on external content types will return multiple External Items. These operations will return an enumerator of these External Items using this interface. All instances of IEntityInstanceEnumerator are forward only.

Caution noteCaution

All implementations of IEntityInstanceEnumerator must be closed using the Close() method after all the required External Items are read. Otherwise, resources used for external system connections will not be reclaimed.

If the external system supports sending results in batches, and the metadata contains enough information about this behavior, the returned enumeration of External Items will also implement IBatchableEntityInstanceEnumerator.

Show:
© 2015 Microsoft