17 lines
530 B
C#
17 lines
530 B
C#
using Modules.Library.Database.Database;
|
|
using Modules.Library.Database.Database.Models.Genre;
|
|
using MongoDB.Driver;
|
|
|
|
namespace Modules.Library.Database.Repositories;
|
|
|
|
public class GenreRepository(MongoDbContext context) : RepositoryBase<Genre>(context)
|
|
{
|
|
protected override IMongoCollection<Genre> GetCollections(MongoDbContext context) => context.Genres;
|
|
/*
|
|
protected override async Task<bool> SoftDeleteAsync(Genre entity)
|
|
{
|
|
//entity.Delete();
|
|
return await UpdateAsync(entity);
|
|
}
|
|
*/
|
|
} |