7136e4fc70
Labeled all service to enable assembly scanning
27 lines
907 B
C#
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>();
|
|
}
|