Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
422 views
in Technique[技术] by (71.8m points)

Use snake case ABP + Postgresql

I'm using abp with PostgreSQL.

When executing the migrator, the names of tables and columns are being created with double quotation marks, e.g. "AbpUsers".

When using the name of tables and columns in this way, without space and with upper and lower case letters, Postgres automatically adds double quotes.

So I would like to use snake case: abp_user instead of "AbpUser". Is that possible?

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

try renaming the table as below

migrationBuilder.RenameTable(name: "OldTableName", schema: "dbo", newName: "NewTableName", newSchema: "dbo");

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...