EntityDataTableAdapter, classe (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.
Espace de noms : Microsoft.Office.Server.ApplicationRegistry.Runtime
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)
Syntaxe
'Déclaration
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
Public Class EntityDataTableAdapter
'Utilisation
Dim instance As EntityDataTableAdapter
[DefaultMemberAttribute("Item")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)]
public class EntityDataTableAdapter
Remarques
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.
Hiérarchie d'héritage
System.Object
Microsoft.Office.Server.ApplicationRegistry.Runtime.EntityDataTableAdapter
Sécurité des threads
Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.
Voir aussi
Référence
Membres EntityDataTableAdapter
Microsoft.Office.Server.ApplicationRegistry.Runtime, espace de noms