Compartir a través de


: AbstractEntityInstance.EntityAsDataRow (Método) (DataTable, Boolean) (Microsoft.Office.Server.ApplicationRegistry.Runtime)

When overridden in a derived class, exposes the entity instance with or without fields with complex formatting as a DataRow object in the specified DataTable object.

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

Sintaxis

'Declaración
Protected Overridable Function EntityAsDataRow ( _
    tableToAddRowTo As DataTable, _
    formattedFields As Boolean _
) As DataRow
'Uso
Dim tableToAddRowTo As DataTable
Dim formattedFields As Boolean
Dim returnValue As DataRow

returnValue = Me.EntityAsDataRow(tableToAddRowTo, formattedFields)
protected virtual DataRow EntityAsDataRow (
    DataTable tableToAddRowTo,
    bool formattedFields
)

Parámetros

  • tableToAddRowTo
    The DataTable object to add the entity instance as a row to.
  • formattedFields
    true if the entity instance contains complex fields and must create a DataRow with the formatted data; otherwise, false.

Valor devuelto

A DataRow object containing all the fields including the complex fields in the entity instance.

Comentarios

When entity instances are transformed into data rows in a data table, they lose the special semantics attached to them in the Business Data Catalog, such as the ability to call instance methods on them. Therefore, you should transform entity instances into data rows only if absolutely necessary. Avoid using ADO.NET adapters that convert Business Data Catalog return types for maximum performance.

Vea también

Referencia

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