EntityDataTableAdapter クラス (Microsoft.Office.Server.ApplicationRegistry.Runtime)

IEntityInstanceEnumerator オブジェクトを Microsoft ADO.NET DataTable オブジェクトに変換します。テーブルの各データ行は列挙子のエンティティ インスタンスを表します。

名前空間: Microsoft.Office.Server.ApplicationRegistry.Runtime
アセンブリ: Microsoft.SharePoint.Portal (microsoft.sharepoint.portal.dll 内)

構文

'宣言
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
Public Class EntityDataTableAdapter
'使用
Dim instance As EntityDataTableAdapter
[DefaultMemberAttribute("Item")] 
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
public class EntityDataTableAdapter

備考

DataTable は、Microsoft ADO.NET ライブラリの中心的なオブジェクトです。メモリ内データの 1 テーブルを表します。

エンティティ インスタンスは、データ テーブルのデータ行に変換されると、エンティティ上にあるインスタンス メソッドを呼び出す機能など、ビジネス データ カタログで備えられている固有のセマンティクスを失います。

また、ストリーミングをサポートする列挙子とは異なり、列挙子をテーブルに変換すると、行のセット全体が一度にメモリに読み込まれるため、ストリーミングは失われます。

さらに、DataTable スキーマ、行を設定し、すべてのフィールドをコピーして設定すると、パフォーマンスに影響があります。

したがって、上の 3 つの理由から、可能な場合には必ず DataTable オブジェクトの代わりに列挙子を使用します。

継承階層

System.Object
  Microsoft.Office.Server.ApplicationRegistry.Runtime.EntityDataTableAdapter

スレッドの安全性

この型のパブリックで静的な (Visual Basic では Shared) すべてのメンバは、スレッド セーフです。インスタンス メンバは、スレッド セーフであるとは保証されません。

関連項目

参照

EntityDataTableAdapter メンバ
Microsoft.Office.Server.ApplicationRegistry.Runtime 名前空間