Introduction

Learn how to use Microsoft Visual Studio 2010 to create a Visual Web Part that uses a Microsoft Business Connectivity Services (BCS) external content type in Microsoft SharePoint Server 2010 to read and write data to the AdventureWorks sample database. This sample accompanies the article Creating SharePoint 2010 Web Parts that can Read and Write Data to External Data Sources in the MSDN Library.

Description

Microsoft Business Connectivity Services (BCS) is provided with Microsoft Office 2010 and SharePoint 2010. Building on the functionality of the Business Data Catalog in Microsoft Office SharePoint Server 2007, it introduces new features, such as external system write-back support and rich client integration. Visual Studio 2010 introduces the Visual Web Part project template. It enables you to use the Visual Web Part Designer to create SharePoint Web Parts and then package and deploy them as part of the build process. This sample and the accompanying article demonstrate how to use Visual Studio 2010 to create a Visual Web Part that uses the BCS object model to work with an external content type based on the AdventureWorks Customer entity.

This sample and the accompanying article demonstrate the following steps to create and use a Web Part that uses an external content type:

  1. Using Visual Studio 2010 to create a Visual Web Part project.
  2. Adding references to the Visual Web Part project.
  3. Adding code to the Web Part to define its user interface and to add support for working with the external content type.
  4. Building the Web Part, deploying it to SharePoint Server, and using it on a Web Parts page.