示例#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;
 }