Beispiel #1
0
 /// <summary>
 /// Basic constructor used in ReadJson() etc.
 /// </summary>
 /// <param name="name">View name used in URI.</param>
 /// <param name="doc">A design doc, can also be created on the fly.</param>
 public BigDViewDefinition(string name, BigDDesignDocument doc) : base(name, doc)
 {
 }
Beispiel #2
0
 /// <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 BigDViewDefinition(string name, string map, string reduce, BigDDesignDocument doc) : base(name, doc)
 {
     Map    = map;
     Reduce = reduce;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BigDViewDefinitionBase"/> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="doc">The document.</param>
 protected BigDViewDefinitionBase(string name, BigDDesignDocument doc)
 {
     Doc  = doc;
     Name = name;
 }