Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: .NET (C#) 1.1
Community Wiki and Resources
Wiki: .NET Client Library
Download Client Library
.NET Client Library
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Couchbase Client Library: .NET (C#) 1.1
Child Sections
Chapters

Chapter 1. Getting Started

Table of Contents

1.1. Downloading the Couchbase Client Library
1.2. Hello C# Couchbase
1.2.1. Couchbase API overview
1.2.2. Conclusion

This chapter will get you started with using Couchbase Server and the .NET (C#) Client Library. This article will walk you through the following:

  1. Downloading and installing the Couchbase client library.

  2. Setting up a command-line driven C# application in Visual Studio 2010, and referencing the Couchbase client library.

  3. Writing a simple program to demonstrate connecting to Couchbase and saving some data in the database.

  4. 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:

Warning

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.