18 lines
485 B
C#
18 lines
485 B
C#
using DBConnection.Contexts;
|
|
using DBConnection.Repositories.Interfaces;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Treestar.Shared.Models.DBDomain;
|
|
|
|
namespace DBConnection.Repositories;
|
|
|
|
public class AuthorRepository : BaseRepository<Author>, IAuthorRepository
|
|
{
|
|
public AuthorRepository(AppDbContext dbContext) : base(dbContext)
|
|
{
|
|
}
|
|
|
|
protected override IQueryable<Author> GetAllIncludedQueryable()
|
|
{
|
|
return DbContext.Authors.Include(i => i.Novels);
|
|
}
|
|
} |