Table of Contents
This chapter will get you started with using Couchbase Server and the .NET (C#) Client Library. This article will walk you through the following:
Downloading and installing the Couchbase client library.
Setting up a command-line driven C# application in Visual Studio 2010, and referencing the Couchbase client library.
Writing a simple program to demonstrate connecting to Couchbase and saving some data in the database.
Exploring the Couchbase client library's API so that you are better equipped to begin to write more complex applications.
This section assumes you have downloaded and set up a compatible version of Couchbase Server and have at least one instance of Couchbase Server and one data bucket established. If you need to set up these items, you can do with the Couchbase Administrative Console, or Couchbase Command-Line Interface (CLI), or the Couchbase REST-API. For information and instructions, see:
The TCP/IP port allocation on Windows by default includes a restricted number of ports available for client communication. For more information on this issue, including information on how to adjust the configuration and increase the available ports, see MSDN: Avoiding TCP/IP Port Exhaustion.
After you have your Couchbase Server set up and you have installed the Couchbase SDK, you can compile and run the following basic program.