/// <summary> /// Determines type of the collection. Default value: Document. /// </summary> public ACollection Type(ACollectionType value) { // set enum format explicitely to override global setting _parameters.Enum(ParameterName.Type, value, EnumFormat.Integer); return(this); }
public static void CreateTestCollection(string collectionName, ACollectionType collectionType) { DeleteTestCollection(collectionName); var db = new ADatabase(Database.Alias); var createResult = db.Collection .Type(collectionType) .Create(collectionName); }
/// <summary> /// Determines type of the collection. Default value: Document. /// </summary> public ACollection Type(ACollectionType value) { // set enum format explicitely to override global setting _parameters.Enum(ParameterName.Type, value, EnumFormat.Object); return this; }
/// <summary> /// Determines type of the collection. Default value: Document. /// </summary> public CollectionBuilder Type(ACollectionType value) { _parameters.Type = (int)value; return(this); }