Exercise 2: Creating External Content Types with Visual Studio 2010
In this exercise you will build a .NET shim that will allow BCS to connect to data in a flat file on the server. To build the .NET shim and the BCS entity definition files you will use Visual Studio 2010.
Task 1 – Create the Visual Studio 2010 project
In this task, create a new SharePoint 2010 project that will hold the External Data Model object.
Task 2 – Define the External Data Model describing the data
In this task, you will define the data model markup that describes how BCS should access the data from the .NET shim classes.
Task 3 – Implement the Customer data source object
In this task, you will define the data source classes that will manage the flat file data source.
Task 4 – Create the External Content Type and External List
In this task, you will use the SharePoint Designer to verify the new External Content Type exists and create a new External List based on it.
Exercise 2 Verification
In order to verify that you have correctly performed all steps of exercise 2, proceed as follows:
Test your work
Verify you can see items in the browser that exist in the flat file. Add a new item to the flat file using SharePoint.