public CouchUrl Filter(CouchFilter f) { var fl = ListModule.OfSeq(new CouchFilter[] { f }); fl = ListModule.Append <CouchFilter>(this.filters, fl); return(Create(this.couchRepo, this.path, this.queryString, fl)); }
internal CouchUrl DB(string db) { var path = ListModule.OfSeq <string>(new string[] { db }); if (this.path.Length > 0) //replace just the first of the list { path = ListModule.Append(path, ListModule.Tail(this.path)); } return(Create(this.couchRepo, path, this.queryString, this.filters)); }
public CouchUrl AddRange(IEnumerable <string> collection) { return(Create(this.couchRepo, ListModule.Append <string>(this.path, ListModule.OfSeq(collection)), this.queryString, this.filters)); }