I'm trying to run a raw query in the Postgresql database, but when I try, I get the following error:
ERROR: relation "cards" does not exist
LINE 1: SELECT * FROM Cards
My table name is Cards
as it is in the string and not cards
.
Code:
var cards = _context.Cards;
var query = cards.FromSqlRaw("SELECT * FROM Cards").ToList();