NPGSQL return table name in lower case
Closed this issue · 5 comments
silverbulleters-github-service commented
we have
Npgsql.PostgresException: 42P01: relation "SOME" does not exist
because entity-framework create table in PascalCase
step to reproduce
- create table in postgresql database
CREATE TABLE public."SomeInCamelCase"
(
"Id" uuid NOT NULL,
"Name" text COLLATE pg_catalog."default"
}
- export
dbtool connections add development postgre "<ConnectionString>"
dbtool.exe filter-tables development "SomeInCamelCase"
dbtool export development --format=json --output=exporter
Another solution - migrate to snake case
antifree commented
Hello,
What version of Postgre do you use?
What Operating System do you use?
silverbulleters-github-service commented
we use for reproduce bug
- Latest stable EntityFramework and latest stable NPGSQL
- ASP.NET 3.x - BlazorServer - development enviroment - Windows 10 Pro
- PosgterSQL 12.1 Alpine in Docker
antifree commented
@silverbulleters-github-service
Hello,
we have already published v.1.4.1.
silverbulleters-github-service commented