//Creates new; internal Collection(Database database, string name, CollectionOptions options) : this(database, name, () => new CollectionHandle(database, name, options)) { }
/// <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)); }
/// <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); }