Extensions for Couchbase for .Net Core
Clone or download
Pull request Compare This branch is even with brantburnett:master.
jeffrymorris Merge pull request #57 from couchbaselabs/change-primary-key
Change primary from guid to natural key
Latest commit 1499e56 Aug 20, 2018


Couchbase Extensions

Build status

A collection of extensions for the Couchbase .Net SDK designed to simplify working with Couchbase within .Net Core applications.

Developer Guide

Using Couchbase 5.0 Role Based Authentication

New to Couchbase Server 5.0 is Role Based Authentication or RBAC, which requires a cluster level user with roles to be created on the server. Alternatively, you can use the cluster user and password to authenticate with any bucket on the server. To get started, we suggest you create a config file with your Username and Password fields matching the RBAC user you have created on the server (or the cluster admin in dev environments):

  "Couchbase": {
    "Username": "Administrator",
    "Password" : "password",
    "Servers": [
    "Buckets": [
        "Name": "travel-sample"

For examples checkout the TestApp and Couchbase.Extensions.DependencyInjection.IntegrationTests projects in this repo.

If you are using a Couchbase Server version that does not support RBAC (all Pre-5.0 servers), then you will use the traditional Bucket name and password to open the bucket.


Open source under the Apache 2.0 license. Please contribute :)