Code Sample: Sample Orders .NET Assembly
Applies to: SharePoint Server 2010
The Sample Orders .NET Assembly sample shows how to use a Microsoft .NET Framework assembly as an external system.
The .NET assembly exposes methods for Create, Read, Update, and Delete (CRUD) operations, and other methods that return data based on relationships between the different entities. This .NET assembly creates the data on-the-fly, without storing or retrieving it in a database.
The methods in this sample map to the following Microsoft Business Connectivity Services (BCS) stereotype methods:
AccessChecker, AssociationNavigator, Associator, BulkAssociatedIdEnumerator, BulkAssociationNavigator, BulkIDEnumerator, BulkSpecificFinder, ChangedIDEnumerator, Creator, Deleter, Disassociator, Finder, GenericInvoker, IdEnumerator, Scalar, SpecificFinder, StreamAccessor, Updater.
To learn how to connect to this .NET assembly using Business Connectivity Services, follow the steps in the Walkthrough: Creating Your Own BDC Model.
Microsoft .NET Framework 3.5 Service Pack 1
Microsoft SharePoint Server 2010
Download and use the sample
Download the Microsoft SharePoint 2010 Software Development Kit (SDK) from SharePoint 2010 Reference: Software Development Kit.
Extract bcs sample kit.zip from the path %ProgramFiles%\Microsoft SDKs\SharePoint 2010\Samples\Business Connectivity Services to a local folder.
In the folder where you extracted the files, locate the Sample Orders .NET Assembly folder and open the Readme.htm file.
Follow the instructions in Readme.htm to use the sample.