Compartir a través de


: AbstractEntityInstance.EntityAsFormattedDataRow (Método) (Microsoft.Office.Server.ApplicationRegistry.Runtime)

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

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

Sintaxis

'Declaración
Public Overridable Function EntityAsFormattedDataRow ( _
    tableToAddRowTo As DataTable _
) As DataRow
'Uso
Dim instance As AbstractEntityInstance
Dim tableToAddRowTo As DataTable
Dim returnValue As DataRow

returnValue = instance.EntityAsFormattedDataRow(tableToAddRowTo)
public virtual DataRow EntityAsFormattedDataRow (
    DataTable tableToAddRowTo
)

Parámetros

  • tableToAddRowTo
    The DataTable object to add the entity instance as a row to.

Valor devuelto

A DataRow object containing all the 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 in to 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)