Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SharePoint 2010 リストからすべてのアイテムを取得し、LINQ クエリを使用してデータ テーブルに格納するにはどうすればよいですか?
SPList yourlist = yourweb.Lists["YourListName"]; SPListItemCollection アイテム = yourList.Items;
上記により、すべてのアイテムがコレクションとして提供され、反復してデータベースに挿入するだけで済みます。Rawling が述べているように、実際には linq クエリは必要ありません。
よろしく、 KS