Exemplo n.º 1
0
        /// <inheritdoc/>
        public override async ValueTask DeleteAsync(params Guid[] ids)
        {
            await base.DeleteAsync(ids);

            var t = client.DeleteManyAsync(ids.Select(i =>
            {
                var proj = Activator.CreateInstance <TEsSearch>();
                proj.Id  = i;
                return(proj);
            }));
        }
Exemplo n.º 2
0
 public Task DeletePhotosPermanentlyAsync(IEnumerable <PhotoToDeleteRestoreDTO> photosToDelete)
 {
     return(_elasticClient.DeleteManyAsync(photosToDelete));
 }
Exemplo n.º 3
0
        public async Task <DeleteResult> RemoveAllMovies()
        {
            await _elasticClient.DeleteManyAsync <Movie>(await GetAllMovies(string.Empty));

            return(await _context.Movies.DeleteManyAsync(new BsonDocument()));
        }