AbstractEntityInstance.EntityAsDataRow 方法 (DataTable) (Microsoft.Office.Server.ApplicationRegistry.Runtime)
When overridden in a derived class, exposes the entity instance as a DataRow object in the specified DataTable object.
命名空间: Microsoft.Office.Server.ApplicationRegistry.Runtime
程序集: Microsoft.SharePoint.Portal (在 microsoft.sharepoint.portal.dll 中)
语法
声明
Public Overridable Function EntityAsDataRow ( _
tableToAddRowTo As DataTable _
) As DataRow
用法
Dim instance As AbstractEntityInstance
Dim tableToAddRowTo As DataTable
Dim returnValue As DataRow
returnValue = instance.EntityAsDataRow(tableToAddRowTo)
public virtual DataRow EntityAsDataRow (
DataTable tableToAddRowTo
)
参数
- tableToAddRowTo
The DataTable object to add the entity instance as a row to.
返回值
A DataRow object containing all the fields in the entity instance.
备注
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.
另请参阅
参考
AbstractEntityInstance 类
AbstractEntityInstance 成员
Microsoft.Office.Server.ApplicationRegistry.Runtime 命名空间