Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: .NET (C#) 1.2
Community Wiki and Resources
Wiki: .NET Client Library
Download Client Library
.NET Client Library
Couchbase Developer Guide 2.0
Couchbase Server Manual 2.0
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Chapters

Couchbase Client Library: .NET (C#) 1.2

Copyright © 2010-2013 Couchbase, Inc. Contact copyright@couchbase.com.

For documentation license information, see Documentation License. For all license information, see Licenses.

Abstract

This is the manual for 1.2 of the Couchbase .NET client library, which is compatible with Couchbase Server 1.8.

This manual provides a reference to the key features and best practive for using the .NET Couchbase Client Library (Enyim). The content constitutes a reference to the core API, not a complete guide to the entire API functionality.

Table 1. Product Compatibility for Couchbase SDK .NET

ProductCompatibleAll Features
Couchbase Server 1.8
Couchbase Server 2.0


External Community Resources. 

Wiki: .NET Client Library
Download Client Library
.NET Client Library
Couchbase Developer Guide 2.0
Couchbase Server Manual 2.0
SDK Forum

Note.  The following document is still in production, and is not considered complete or exhaustive.

Last document update: 18 Jun 2013 23:08; Document built: 18 Jun 2013 23:08.

Documentation Availability and Formats.  This documentation is available for download: HTML Zip, PDF, EPUB . For other documentation from Couchbase, see Couchbase Documentation Library

Contact: editors@couchbase.com or couchbase.com


Table of Contents

1. Getting Started
1.1. Get a Server
1.2. Get a Client Library
1.3. Try it Out!
1.3.1. Project Setup
1.3.2. Adding Configuration
1.3.3. Instantiating the Client
1.3.4. CRUD Operations
1.3.5. Storing JSON Documents
1.3.6. CouchbaseClient JSON Extension Methods
1.3.7. Working with Views
2. Couchbase and ASP.NET MVC
2.1. Prerequisites
2.2. Visual Studio Project Setup
2.3. Working with Models
2.4. Encapsulating Data Access
2.5. Working with Views
2.6. The Views and Controller
2.7. Brewery CRUD
2.8. Brewery Forms
2.9. Collated Views
2.10. Paging
2.11. Spatial Indexes
2.12. Conclusion
3. .NET Method Summary
4. .Net Connection Operations
5. Store Operations
5.1. Store Methods
6. Retrieve Operations
6.1. Get Methods
7. Update Operations
7.1. Append Methods
7.2. Decrement Methods
7.3. Remove Methods
7.4. Increment Methods
7.5. Prepend Methods
7.6. Touch Methods
7.7. CAS Methods
8. View/Query Interface
9. .Net Troubleshooting
9.1. Bulk Load and Exponential Backoff
A. Working with Operation Results
B. JSON Extension Methods
C. Configuring the .NET Client Library
D. Configuring Logging
E. Cluster Management with the .NET Client Library
F. Available packages for the .NET Client Library
G. Release Notes
G.1. Release Notes for Couchbase Client Library .NET 1.2.6 GA (07 May 2013)
G.2. Release Notes for Couchbase Client Library .NET 1.2.5 GA (07 May 2013)
G.3. Release Notes for Couchbase Client Library .NET 1.2.4 GA (02 April 2013)
G.4. Release Notes for Couchbase Client Library .NET 1.2.3 GA (08 March 2013)
G.5. Release Notes for Couchbase Client Library .NET 1.2.2 GA (05 March 2013)
G.6. Release Notes for Couchbase Client Library .NET 1.2.1 GA (05 February 2013)
G.7. Release Notes for Couchbase Client Library .NET 1.2.0 GA (12 December 2012)
G.8. Release Notes for Couchbase Client Library .NET 1.2.0-BETA-3 Beta (28 November 2012)
G.9. Release Notes for Couchbase Client Library .NET 1.2.0-DP4 Alpha (27 August 2012)
G.10. Release Notes for Couchbase Client Library .NET 1.2.0-DP3 Alpha (27 August 2012)
G.11. Release Notes for Couchbase Client Library .NET 1.2.0-DP2 Alpha (25 July 2012)
G.12. Release Notes for Couchbase Client Library .NET 1.2-DP Alpha (27 March 2012)

List of Figures

2.1. Figure 1, New Project.
2.2. Figure 2, Select Empty Template.
2.3. Figure 3, CouchbaseNetClient NuGet Package
2.4. Figure 4, CouchbaseModelViews NuGet Package
2.5. Figure 5, Couchbase web console Views tab
2.6. Figure 6, inflector_extensions NuGet package
2.7. Figure 7, Create the BreweriesController
2.8. Figure 8, Index view with list scaffolding
2.9. Figure 9, List breweries page
2.10. Figure 10, Create the Edit view
2.11. Figure 11, Create the Edit view
2.12. Figure 12, Create the Details view
2.13. Figure 13, Create the details view
2.14. Figure 14, Paging
2.15. Figure 15, Add CountriesController
2.16. Figure 16, Add Countries Index view
2.17. Figure 17, Brewery counts by country
2.18. Figure 18, Brewery counts by province
2.19. Figure 19, Brewery counts by city
2.20. Figure 20, Brewery counts by poastal code
2.21. Figure 21, Breweries by poastal code
2.22. Figure 22, Mapped breweries

List of Tables

1. Product Compatibility for Couchbase SDK .NET
3.1. .NET Client Library
4.1. .Net Client Library Connection Methods
5.1. .NET Client Library Store Methods
6.1. .NET Client Library Retrieve Methods
7.1. .NET Client Library Update Methods