I have just started with Couchbase and I am stuck with a error that I cant seem to get past.
var db = new BucketContext(ClusterHelper.GetBucket(“EventSample”));
var query = from x in db.Query<EventCode>()
where x.type == "eventcode"
select x;
foreach(var q in query.Take(1)) <----- Get a error here BucketName = 'query.BucketName' threw an exception of type 'System.NullReferenceException'
{
}