public void Setup(DesignDoc dd, string element_name) { this.Name = element_name; this.dd = dd; this.viewUrl = this.dd.viewUrl.Add("_view", this.Name); }
public DesignDoc(DB db, string name = null) { this.db = db; this.ID = name ?? this.TYPE; this.viewUrl = this.db.couchUrl.Add("_design", this.ID); this.SetupEmbedded(); }