Initial efcore migration and updates to make sure upserting novels (mostly) works. still need to do chapter handling

This commit is contained in:
2022-07-14 23:12:12 -04:00
parent 5402923e9f
commit 5337e7ccb8
25 changed files with 962 additions and 64 deletions

View File

@@ -0,0 +1,17 @@
using DBConnection.Models;
using DBConnection.Repositories.Interfaces;
using Microsoft.EntityFrameworkCore;
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);
}
}