Open Closed

abp suite - navigation property naming does not match the given plural name #4431


0
[email protected] created
  • ABP Framework version: v7.0.1
  • UI type: Blazor
  • DB provider: EF Core

given a entity with plural name: mensen

when adding a entity fietesen with a 1-n navigation property to mensen

In EFFietsRepository.cs the code generator creates incorrect code dbContext.Menss instead of dbContext.Mensen

And also the Fietsen.razor and Fietsen.razor.cs files does not respect the given plural name (it is not incorrect code). however, the filenames are correct.


3 Answer(s)
  • 0
    alper created
    Support Team

    @yekalkan will help you

  • 0
    yekalkan created
    Support Team

    Hi,

    I've created an internatl issue about this. Thank you for reporting. The question credit is refunded.

  • 0
    yekalkan created
    Support Team

    Hi again,

    You have to set the correct db collection name in the advanced section when adding the navigation property.