EntityDataTableAdapter Constructor (IEntityInstanceEnumerator, UInt32, Int32)
Transforms the specified number of entity instances starting from the specified offset in an IEntityInstanceEnumerator object into a Microsoft ADO.NET DataTable object. Each data row in the table represents an entity instance in the enumerator.
Namespace: Microsoft.Office.Server.ApplicationRegistry.Runtime
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Public Sub New ( _
dataSource As IEntityInstanceEnumerator, _
offsetFromStart As UInteger, _
rowCount As Integer _
)
'Usage
Dim dataSource As IEntityInstanceEnumerator
Dim offsetFromStart As UInteger
Dim rowCount As Integer
Dim instance As New EntityDataTableAdapter(dataSource, _
offsetFromStart, rowCount)
public EntityDataTableAdapter(
IEntityInstanceEnumerator dataSource,
uint offsetFromStart,
int rowCount
)
Parameters
- dataSource
Type: Microsoft.Office.Server.ApplicationRegistry.Runtime.IEntityInstanceEnumerator
An IEntityInstanceEnumerator object that needs to be transformed.
- offsetFromStart
Type: System.UInt32
The offset from the start of the enumerator. The transform starts from this offset and transforms the number of entity instances specified in the rowCount parameter.
- rowCount
Type: System.Int32
The number of entity instances to be transformed.
Unlike an enumerator that supports streaming, you lose streaming when you convert an enumerator into a table because the entire set of rows is loaded into memory. You can use this constructor to limit the number of rows in the data table.
See Also
Reference
EntityDataTableAdapter Members
EntityDataTableAdapter Overload
Microsoft.Office.Server.ApplicationRegistry.Runtime Namespace