Files
components/LiteCharms.Features.MidrandBooks/Postgres/MidrandBooksDbContext.cs
T
Khwezi Mngoma 7136e4fc70 Added Customer, Contact and Address with Service
Labeled all service to enable assembly scanning
2026-05-26 00:27:11 +02:00

27 lines
907 B
C#

using LiteCharms.Features.MidrandBooks.AuthorBooks.Entities;
using LiteCharms.Features.MidrandBooks.Authors.Entities;
using LiteCharms.Features.MidrandBooks.Customers.Entities;
using LiteCharms.Features.MidrandBooks.Pages.Entities;
using LiteCharms.Features.MidrandBooks.Products.Entities;
namespace LiteCharms.Features.MidrandBooks.Postgres;
public class MidrandBooksDbContext(DbContextOptions<MidrandBooksDbContext> options) : DbContext(options)
{
public DbSet<Author> Authors => Set<Author>();
public DbSet<Product> Products => Set<Product>();
public DbSet<ProductPrice> Prices => Set<ProductPrice>();
public DbSet<AuthorBook> Books => Set<AuthorBook>();
public DbSet<BookPage> Pages => Set<BookPage>();
public DbSet<Contact> Contacts => Set<Contact>();
public DbSet<Address> Addresses => Set<Address>();
public DbSet<Customer> Customers => Set<Customer>();
}