ASP.NET / ASP.NET E-commerce Website Using Vue / DAL / AppDbContext.cs
AppDbContext.cs
Raw
using Microsoft.EntityFrameworkCore;
using Casestudy.DAL.DomainClasses;
namespace Casestudy.DAL
{
    public class AppDbContext : DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
        public virtual DbSet<Product>? Products { get; set; }
        public virtual DbSet<Brand>? Brands { get; set; }
        public virtual DbSet<Customer>? Customers { get; set; }
        public virtual DbSet<Order>? Order { get; set; }
        public virtual DbSet<OrderLineItem>? OrderLineItem { get; set; }
        public virtual DbSet<Branch>? Branch { get; set; }
    }
}