52 lines
1.8 KiB
C#
52 lines
1.8 KiB
C#
using LiteCharms.Features.MidrandBooks.AuthorBooks.Entities;
|
|
using LiteCharms.Features.MidrandBooks.Authors.Entities;
|
|
using LiteCharms.Features.MidrandBooks.Categories.Entities;
|
|
using LiteCharms.Features.MidrandBooks.Customers.Entities;
|
|
using LiteCharms.Features.MidrandBooks.Orders.Entities;
|
|
using LiteCharms.Features.MidrandBooks.Pages.Entities;
|
|
using LiteCharms.Features.MidrandBooks.Payments.Entities;
|
|
using LiteCharms.Features.MidrandBooks.Products.Entities;
|
|
|
|
namespace LiteCharms.Features.MidrandBooks.Postgres;
|
|
|
|
public sealed 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>();
|
|
|
|
public DbSet<Order> Orders => Set<Order>();
|
|
|
|
public DbSet<OrderItem> OrderItems => Set<OrderItem>();
|
|
|
|
public DbSet<Refund> Refunds => Set<Refund>();
|
|
|
|
public DbSet<Shipping> Shippings => Set<Shipping>();
|
|
|
|
public DbSet<ShippingProvider> ShippingProviders => Set<ShippingProvider>();
|
|
|
|
public DbSet<Category> Categories => Set<Category>();
|
|
|
|
public DbSet<ProductCategory> ProductCategories => Set<ProductCategory>();
|
|
|
|
public DbSet<ProductInventory> Inventories => Set<ProductInventory>();
|
|
|
|
public DbSet<Payment> Payments => Set<Payment>();
|
|
|
|
public DbSet<PaymentGateway> Gateways => Set<PaymentGateway>();
|
|
|
|
public DbSet<PaymentLedger> Ledger => Set<PaymentLedger>();
|
|
}
|