فتح مغلق

Many to Many requires a Name property #2883


User avatar
0
Mikael خلقت

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 إجابة (إجابات)
  • User Avatar
    0
    yekalkan خلقت
    فريق الدعم 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 خلقت

    Thank you

  • User Avatar
    0
    EngincanV خلقت
    فريق الدعم .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 v8.2.0-preview Updated on مارس 25, 2024, 15:11