Sealed qualifying public classes Migrated database changes
This commit is contained in:
@@ -5,7 +5,7 @@ using LiteCharms.Features.MidrandBooks.Postgres;
|
||||
|
||||
namespace LiteCharms.Features.MidrandBooks.Customers;
|
||||
|
||||
public class CustomerService(IDbContextFactory<MidrandBooksDbContext> contextFactory) : IService
|
||||
public sealed class CustomerService(IDbContextFactory<MidrandBooksDbContext> contextFactory) : IService
|
||||
{
|
||||
public async ValueTask<Result<long>> CreateCustomerAsync(CreateCustomer request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace LiteCharms.Features.MidrandBooks.Customers.Entities;
|
||||
|
||||
public class AddressConfiguration : IEntityTypeConfiguration<Address>
|
||||
public sealed class AddressConfiguration : IEntityTypeConfiguration<Address>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<Address> builder)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace LiteCharms.Features.MidrandBooks.Customers.Entities;
|
||||
|
||||
public class ContactConfiguration : IEntityTypeConfiguration<Contact>
|
||||
public sealed class ContactConfiguration : IEntityTypeConfiguration<Contact>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<Contact> builder)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace LiteCharms.Features.MidrandBooks.Customers.Entities;
|
||||
|
||||
public class CustomerConfiguration : IEntityTypeConfiguration<Customer>
|
||||
public sealed class CustomerConfiguration : IEntityTypeConfiguration<Customer>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<Customer> builder)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ public record CreateCustomer
|
||||
public SocialMedia[]? SocialMedia { get; set; }
|
||||
}
|
||||
|
||||
public record UpdateCustomer : CreateCustomer;
|
||||
public sealed record UpdateCustomer : CreateCustomer;
|
||||
|
||||
public record CreateCustomerContact
|
||||
{
|
||||
@@ -32,7 +32,7 @@ public record CreateCustomerContact
|
||||
public string? Phone { get; set; }
|
||||
}
|
||||
|
||||
public record UpdateCustomerContact : CreateCustomerContact;
|
||||
public sealed record UpdateCustomerContact : CreateCustomerContact;
|
||||
|
||||
public record CreateCustomerAddress
|
||||
{
|
||||
@@ -57,4 +57,4 @@ public record CreateCustomerAddress
|
||||
public bool Enabled { get; set; }
|
||||
}
|
||||
|
||||
public record UpdateCustomerAddress : CreateCustomerAddress;
|
||||
public sealed record UpdateCustomerAddress : CreateCustomerAddress;
|
||||
Reference in New Issue
Block a user