Open Closed

Many to Many requires a Name property #2883


User avatar
0
Mikael created

ABP Commercial 5.2.0 stable, ABP Suite 5.2.0 stable EF SQL New MVC project

When I create a Many to Many relation using ABP Suite, if I set a property called "Name", it is working correctly. If I do not, then build fails with the following: D:\Sources\TestingMTM\aspnet-core\src\TestingMTM.Web\Pages\Bookfails\EditModal.cshtml(55,115,55,119): error CS1061: 'CategoryfailDto' does not contain a definition for 'Name' and no accessible extension method 'Name' accepting a first argument of type 'CategoryfailDto' could be found (are you missing a using directive or an assembly reference?)

Is a "Name" property mandatory?

Thanks


3 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @Mikael,

    Is a "Name" property mandatory?

    No, it shouldn't be. Probably there is a bug, so i refund your question credit and we will fix it in next release.

    For now, you can just replace the Name with the real display property name manually in EditModal.cshtml file and it will be OK.

  • User Avatar
    0
    Mikael created

    Thank you

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @Mikael, I close the question since we've created an internal issue for this problem and will take the necessary action for it. Thanks for reporting the problem.

    Best regards.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38