Sealed qualifying public classes Migrated database changes
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user