Open Closed

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


User avatar
0
info@ericverschoor.nl 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)
  • User Avatar
    0
    alper created
    Support Team Director

    @yekalkan will help you

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi,

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

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi again,

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

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11