C
C#5mo ago
millarrr

ef db scaffold does not scaffold tables with a postgres db using db first approach?

Im trying to use dotnet ef dbcontext scaffold <ConnectionString> on a pre existing postgres databse schema - the build 'succeeds', "<DbName>Context.cs" is created but seemingly just contains boilerplate in addition to no entity type classes being created at all. Unsure if it's important but the db is in a docker container. Anyone have any thoughts? Thanks
2 Replies
Raven Scarlet
Raven Scarlet5mo ago
How is the database? Does it have tables inside? Can you provide us more context?
millarrr
millarrr5mo ago
The database currently runs in a docker container which I can connect to and see the tables. Working on it more when I try and read or write through my .net app it fails with “relation <tablename>” does not exist”. I keep thinking it’s a connection string issue or something but I feel I’ve tried every possibility there