示例#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);
        }
        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);
        }