diff --git a/modules/blogging/src/Volo.Blogging.MongoDB/Volo/Blogging/Posts/MongoPostTagRepository.cs b/modules/blogging/src/Volo.Blogging.MongoDB/Volo/Blogging/Posts/MongoPostTagRepository.cs deleted file mode 100644 index edd3ad4bae..0000000000 --- a/modules/blogging/src/Volo.Blogging.MongoDB/Volo/Blogging/Posts/MongoPostTagRepository.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Threading.Tasks; -using MongoDB.Driver.Linq; -using Volo.Abp.Domain.Repositories.MongoDB; -using Volo.Abp.MongoDB; -using Volo.Blogging.MongoDB; - -namespace Volo.Blogging.Posts -{ - public class MongoPostTagRepository : MongoDbRepository, IPostTagRepository - { - public MongoPostTagRepository(IMongoDbContextProvider dbContextProvider) : base(dbContextProvider) - { - } - - public void DeleteOfPost(Guid id) - { - var recordsToDelete = GetMongoQueryable().Where(pt => pt.PostId == id); - foreach (var record in recordsToDelete) - { - Delete(record); - } - } - - public async Task FindByTagIdAndPostIdAsync(Guid postId, Guid tagId) - { - return await GetMongoQueryable().FirstOrDefaultAsync(pt => pt.PostId == postId && pt.TagId == tagId); - } - } -}