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
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!
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
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!