EntityFramework Core database first approach pluralizing table names -


we have existing database pluralized table names. example documents. trying use new ef core , asp.net core database first approach based on article here

i run following command create models existing database

scaffold-dbcontext "server=(local);database=mydatabase;trusted_connection=true;"microsoft.entityframeworkcore.sqlserver -outputdir models

however when run scaffolding command creates models plural names. example documents table converted model name documents.

how change can use singular naming convention model? (i cannot alter table names in database)

note have read few post on related same issue concerned code first approach. using database first approach.

the ef core tools not include options customise output of reverse engineering existing database in way describe. currently, realistic option modify generated code.


Comments