Open Closed

ABP Suite Blazor not properly generated for nullable enum #6216


User avatar
0
olitrepanier created
  • ABP Framework version: v7.4.2
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: no exception
  • Steps to reproduce the issue: Using ABP suite, I generated a new entity using a nullable enum like so:

The generated Blazor code treated it as a nullable property and gave me build errors:


4 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, thanks for reporting I will test this and write you back to you ASAP.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    I have tested it and can confirm there is a problem as you stated. I will fix it and it will be included in the next release.

    For a quick fix, you should change the TValue type to TValue = ContactJobType?, instead of TValue = ContactJobType.

  • User Avatar
    0
    olitrepanier created

    Awesome thank you. Any way we can get our ticket refunded?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Awesome thank you. Any way we can get our ticket refunded?

    Sure, I have refunded your ticket. Thanks for your understanding. I have fixed the problem in our internal repository and it will be included in the next version. So, I close the question.

    Regards.

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