Compartir a través de


: AbstractEntityInstance.EntityAsDataTable (Propiedad) (Microsoft.Office.Server.ApplicationRegistry.Runtime)

When overridden in a derived class, gets the entity instance as a DataTable with a single row of data containing the fields in the entity instance.

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

Sintaxis

'Declaración
Public Overridable ReadOnly Property EntityAsDataTable As DataTable
'Uso
Dim instance As AbstractEntityInstance
Dim value As DataTable

value = instance.EntityAsDataTable
public virtual DataTable EntityAsDataTable { get; }

Valor de propiedad

A DataTable object with one row data.

Comentarios

The DataTable is a central object in the Microsoft ADO.NET library. It represents one table of in-memory data.

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)