Completed initial database design
continuous-integration/drone/pr Build is passing

Sealed qualifying public classes
Migrated database changes
This commit is contained in:
Khwezi Mngoma
2026-05-27 09:12:04 +02:00
parent 70860efcfb
commit 902942eee6
86 changed files with 2883 additions and 140 deletions
@@ -7,7 +7,7 @@ using LiteCharms.Features.Models;
namespace LiteCharms.Features.MidrandBooks.Authors;
public class AuthorService(IDbContextFactory<MidrandBooksDbContext> contextFactory) : IService
public sealed class AuthorService(IDbContextFactory<MidrandBooksDbContext> contextFactory) : IService
{
public async ValueTask<Result<AuthorBook[]>> GetAuthorBooksAsync(long authorId, CancellationToken cancellationToken)
{
@@ -3,7 +3,7 @@
namespace LiteCharms.Features.MidrandBooks.Authors.Entities;
[EntityTypeConfiguration<AuthorConfiguration, Author>]
public class Author : Models.Author
public sealed class Author : Models.Author
{
public ICollection<AuthorBook> Books { get; set; } = [];
}
@@ -1,6 +1,6 @@
namespace LiteCharms.Features.MidrandBooks.Authors.Entities;
public class AuthorConfiguration : IEntityTypeConfiguration<Author>
public sealed class AuthorConfiguration : IEntityTypeConfiguration<Author>
{
public void Configure(EntityTypeBuilder<Author> builder)
{
@@ -2,7 +2,7 @@
namespace LiteCharms.Features.MidrandBooks.Authors.Models;
public record UpdateAuthor : CreateAuthor;
public sealed record UpdateAuthor : CreateAuthor;
public record CreateAuthor
{