Exemple #1
0
        /// <summary>
        /// Rename a collection. Returns false if oldName does not exists or newName already exists
        /// </summary>
        public async Task <bool> RenameCollectionAsync(string oldName, string newName)
        {
            if (oldName.IsNullOrWhiteSpace())
            {
                throw new ArgumentNullException(nameof(oldName));
            }
            if (newName.IsNullOrWhiteSpace())
            {
                throw new ArgumentNullException(nameof(newName));
            }

            return(await _engine.RenameCollectionAsync(oldName, newName));
        }