Building a BCS search connector
Before we begin writing our connector, we need something to connect to. First, extract the downloadable files for this chapter from the Packt Publishing website. You'll notice there is a file called VideoGamesDB.bak
. This is a SQL database backup with video games console content that we will crawl to our SharePoint. Restore this database to a SQL server of your choice.
Now that we have content to crawl, let's move on and create the BCS connector.
Setting the operations
As this book is not a book about BCS, we've already created the basics for you. Open the VideoGamesConnector-Starter project from the downloadable content of the book in Visual Studio 2012. The BCS is partially done. What it's missing are a few key factors, as follows:
Implementation of the
ReadList
methodImplementation of the
ReadItem
methodSetting the BCS as crawlable
Implementing the ReadList method
Implementing the ReadList
method is rather simple. All it does is connect to the database and grab...