Entity Framework Core for Beginners: Point of Sale Console App - Part 10 - Add and Get Categories

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 2

  • @furiax83
    @furiax83 Рік тому +1

    Hey Pablo at 4:07 in the video when you add the GetCategories() method, I got an error on line 20 var categories db.Categories.ToList().
    Came to the conclusion ProductsContext also needed some changes.
    You need to add public DbSetCategories { get; set; } over there.
    Seems like this is missing in this video.
    Also the link to the source code doesn't exists anymore

    • @thecacademy5376
      @thecacademy5376  Рік тому

      Thanks for the feedback! The repository was private, I just made it public so it should be ok. Did I forget to add the categories DB set in the video? I must have cut it when editing 😨😨 Thanks again!