public __Row(CouchbaseView owner, IDictionary<string, object> row) { this.owner = owner; if (row == null) throw new ArgumentNullException("row", "Missing row info"); if (!row.TryGetValue("id", out this.id)) this.id = null; //this is the case when the row is from a reduced view object tempKey; if (!row.TryGetValue("key", out tempKey)) throw new InvalidOperationException("The value 'key' was not found in the row definition."); this.key = (tempKey as object[]) ?? (new object[] { tempKey }); this.info = row.AsReadOnly(); }
protected CouchbaseView(CouchbaseView <T> original) : base(original) { }