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

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
702 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,381 questions
{count} votes