IEntityInstance.EntityAsDataTable 属性 (Microsoft.Office.Server.ApplicationRegistry.Runtime)
Gets the entity instance as a DataTable object with a single row of data containing the fields in the entity instance.
命名空间: Microsoft.Office.Server.ApplicationRegistry.Runtime
程序集: Microsoft.SharePoint.Portal (在 microsoft.sharepoint.portal.dll 中)
语法
声明
ReadOnly Property EntityAsDataTable As DataTable
用法
Dim instance As IEntityInstance
Dim value As DataTable
value = instance.EntityAsDataTable
DataTable EntityAsDataTable { get; }
属性值
A System.Data.DataTable object with one data row.
备注
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.
另请参阅
参考
IEntityInstance 接口
IEntityInstance 成员
Microsoft.Office.Server.ApplicationRegistry.Runtime 命名空间