IEntityInstance.EntityAsDataTable Property

Gets the entity instance as a DataTable object with a single row of data containing the fields in the entity instance.

Namespace:  Microsoft.Office.Server.ApplicationRegistry.Runtime
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
ReadOnly Property EntityAsDataTable As DataTable
    Get
'Usage
Dim instance As IEntityInstance
Dim value As DataTable

value = instance.EntityAsDataTable
DataTable EntityAsDataTable { get; }

Property Value

Type: System.Data.DataTable
A System.Data.DataTable object with one data row.

Remarks

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.

See Also

Reference

IEntityInstance Interface

IEntityInstance Members

Microsoft.Office.Server.ApplicationRegistry.Runtime Namespace