Npgsql.PostgresException (0x80004005): 42P01: relation "ProductImages" does not exist

Ayobami Jimoh 1 Reputation point
2022-08-30T14:24:52.237+00:00

Hey Guys. I am trying to read a list of products from the db using entity framework core.
Works on local environment but fails in production on heroku.
my db is in postgres

It happens when i try to "Include" the products images
Here is the error table

236108-screenshot-2022-08-30-at-144010.png

Also here are the entity declarations

236178-screenshot-2022-08-30-at-144751.png236183-screenshot-2022-08-30-at-144128.png236136-screenshot-2022-08-30-at-144825.png

i do code first approach

Here i try to get products so i include the images list .
if i don't include , no error but no images
236125-screenshot-2022-08-30-at-144849.png

@KranthiPakala-MSFT please if you can

Developer technologies | .NET | Entity Framework Core
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.