IRuntimeHelper.CreateDataTable Method (IEntityInstanceEnumerator)
Creates a DataTable with the data obtained from the given enumeration of External ItemExternal Items.
Namespace: Microsoft.BusinessData.Runtime
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function CreateDataTable ( _
dataSource As IEntityInstanceEnumerator _
) As DataTable
'Usage
Dim instance As IRuntimeHelper
Dim dataSource As IEntityInstanceEnumerator
Dim returnValue As DataTable
returnValue = instance.CreateDataTable(dataSource)
DataTable CreateDataTable(
IEntityInstanceEnumerator dataSource
)
Parameters
dataSource
Type: Microsoft.BusinessData.Runtime.IEntityInstanceEnumeratorThe enumeration of External ItemExternal Items.
Return Value
Type: System.Data.DataTable
A DataTable that is populated with the data.
Remarks
This method will consume and close the enumerator.
Instances of objects in the Business Data Connectivity object model are tied to the Metadata Store they are obtained from. Using instances tied to one Metadata Store with the instances from another Metadata Store will cause data corruption and other unexpected behavior. For more information, see DatabaseBackedMetadataCatalog, FileBackedMetadataCatalog, and RemoteSharedFileBackedMetadataCatalog.