예제 #1
0
        public CouchDesignDocument NewDesignDocument(string aName)
        {
            var newDoc = new CouchDesignDocument(aName, this);

            DesignDocuments.Add(newDoc);
            return(newDoc);
        }
예제 #2
0
 public CouchShowDefinition(string name, string list, CouchDesignDocument doc) : base(name, doc)
 {
     Show = list;
 }
예제 #3
0
 public CouchShowDefinition(string name, CouchDesignDocument doc) : base(name, doc)
 {
 }
예제 #4
0
 public CouchListDefinition(string name, string list, CouchDesignDocument doc) : base(name, doc)
 {
     List = list;
 }
 /// <summary>
 /// Constructor used for permanent views, see CouchDesignDocument.
 /// </summary>
 /// <param name="name">View name.</param>
 /// <param name="map">Map function.</param>
 /// <param name="reduce">Optional reduce function.</param>
 /// <param name="doc">Parent document.</param>
 public CouchViewDefinition(string name, string map, string reduce, CouchDesignDocument doc) : base(name, doc)
 {
     Map    = map;
     Reduce = reduce;
 }