dotnet / dotnet/efcore

Scaffolded Navigation Properties Forced to Use Navigation Suffix

Open
#34,328 1 comment 2 reactions 0 assignees View on GitHub
area-scaffolding customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

There's no straightforward way to replace the "Navigation" suffix generated for navigation properties during database scaffolding. It's hard-coded [here](https://github.com/dotnet/efcore/blob/5aa72dffd4d0e8e91bc69e303ba1049a28695d3a/src/EFCore.Design/Scaffolding/Internal/RelationalScaffoldingModelFactory.cs#L21).

There are workarounds, but none of them are particularly pleasant. It would be much easier and more performant to simply allow developers to replace the hard-coded values through configuration or a design time service.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.