Ejemplo n.º 1
0
 //Creates new;
 internal Collection(Database database, string name, CollectionOptions options)
     : this(database, name, () => new CollectionHandle(database, name, options))
 {
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Automatically creates new collection if it does't exists.
 /// </summary>
 /// <remarks>
 /// Collection options <c>options</c> are applied only for newly created collection.
 /// For existing collections <c>options</c> has no effect.
 /// </remarks>
 /// <returns><c>false</c> error ocurried.</returns>
 /// <param name="name">Name of collection.</param>
 /// <param name="options">Collection options.</param>
 public Collection CreateCollection(string name, CollectionOptions options)
 {
     return(new Collection(this, name, options));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Automatically creates new collection if it does't exists.
 /// </summary>
 /// <remarks>
 /// Collection options <c>options</c> are applied only for newly created collection.
 /// For existing collections <c>options</c> has no effect.
 /// </remarks>
 /// <returns><c>false</c> error ocurried.</returns>
 /// <param name="name">Name of collection.</param>
 /// <param name="options">Collection options.</param>
 public Collection CreateCollection(string name, CollectionOptions options)
 {
     return new Collection(this, name, options);
 }