Compartir a través de


: EntityDataTableAdapter (Constructor) (IEntityInstanceEnumerator, Int32) (Microsoft.Office.Server.ApplicationRegistry.Runtime)

Transforms the specified number of entity instances in an IEntityInstanceEnumerator object into a Microsoft ADO.NET DataTable object. Each data row in the table represents an entity instance in the enumerator.

Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)

Sintaxis

'Declaración
Public Sub New ( _
    dataSource As IEntityInstanceEnumerator, _
    rowCount As Integer _
)
'Uso
Dim dataSource As IEntityInstanceEnumerator
Dim rowCount As Integer

Dim instance As New EntityDataTableAdapter(dataSource, rowCount)
public EntityDataTableAdapter (
    IEntityInstanceEnumerator dataSource,
    int rowCount
)

Parámetros

  • dataSource
    An IEntityInstanceEnumerator object to be transformed.
  • rowCount
    The number of entity instances to be transformed.

    Unlike an enumerator that supports streaming, you lose streaming when you convert an enumerator into a data 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.

Vea también

Referencia

EntityDataTableAdapter (Clase)
EntityDataTableAdapter (Miembros)
Microsoft.Office.Server.ApplicationRegistry.Runtime (Espacio de nombres)