TheCSharpAcademy / CONSOLE.PointOfSale

6 stars 15 forks source link

Added the Seed Data from ProductService.cs #30

Closed ZadokJoshua closed 1 year ago

ZadokJoshua commented 1 year ago

Changes:

  1. Moved kebabContext.cs to the DbContexts folder. Added seed data by overriding the OnModelCreating method.
  2. Added OrderProduct.cs as the entity to represent the join table for the Order and Product tables. This is because Order and Product have a many-to-many relationship.
  3. Changed the access modifier of ProductService class to public so that it can be accessible. Made GetProducts() method static.