예제 #1
0
        /// <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);
        }
예제 #2
0
        public static void CreateTestCollection(string collectionName, ACollectionType collectionType)
        {
            DeleteTestCollection(collectionName);

            var db = new ADatabase(Database.Alias);

            var createResult = db.Collection
                               .Type(collectionType)
                               .Create(collectionName);
        }
예제 #3
0
        /// <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;
        }
예제 #4
0
        /// <summary>
        /// Determines type of the collection. Default value: Document.
        /// </summary>
        public CollectionBuilder Type(ACollectionType value)
        {
            _parameters.Type = (int)value;

            return(this);
        }
예제 #5
0
        public static void CreateTestCollection(string collectionName, ACollectionType collectionType)
        {
            DeleteTestCollection(collectionName);

            var db = new ADatabase(Database.Alias);

            var createResult = db.Collection
                .Type(collectionType)
                .Create(collectionName);
        }