: EntityDataTableAdapter (Clase) (Microsoft.Office.Server.ApplicationRegistry.Runtime)
Transforms an IEntityInstanceEnumerator object into a Microsoft ADO.NET DataTable object. Each data row in the table represents an entity instance in the enumerator.
Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)
Sintaxis
'Declaración
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
Public Class EntityDataTableAdapter
'Uso
Dim instance As EntityDataTableAdapter
[DefaultMemberAttribute("Item")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)]
public class EntityDataTableAdapter
Comentarios
The DataTable object is a central object in the ADO.NET library, and 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.
Also, unlike an enumerator that supports streaming, you lose streaming when you transform an enumerator into a data table because the entire set of rows is loaded into memory at once.
Also there is a performance hit to set up the DataTable schema, rows and copy and set up all the fields.
Therefore, because the above three reasons, use the enumerator instead of the DataTable object whenever possible.
Jerarquía de herencia
System.Object
Microsoft.Office.Server.ApplicationRegistry.Runtime.EntityDataTableAdapter
Seguridad de subprocesos
Todos los miembros estáticos públicos (compartidos en Visual Basic) de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancia sean seguros para los subprocesos.
Vea también
Referencia
EntityDataTableAdapter (Miembros)
Microsoft.Office.Server.ApplicationRegistry.Runtime (Espacio de nombres)