Ends in:
7 DAYS
12 HRS
30 MIN
37 SEC
Ends in:
7 D
12 H
30 M
37 S
Open Closed

Errors in razor file when generating entities with enums #6519


User avatar
0
ageiter created
  • ABP Framework version: v8.0.1
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)

Steps to reproduce the issue:

1. Create an entity in the Abp Suite
2. Add property of type Enum
3. Select enum from **another namespace** (sometimes necessary if you want to use an enum for different entities)
4. Select **Nullable**
5. Generate entity and compile solution

1. Problem:

The using for the namespace "MyProject.Enums" is missing in the razor file:

2. Problem:

Because the enum is optional, it must be checked for null:

Working:

Thanks for fixing it :-)

Adrian


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

    Hi, thanks for the comprehensive explanation. I'll create an internal issue for it and fix it asap.

  • User Avatar
    0
    ageiter created

    Thank you for fixing this.

    Could you please refund the ticket? Thanks.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Thank you for fixing this.

    Could you please refund the ticket? Thanks.

    Sure, I have refunded your ticket and closed the question.

    Best Regards.

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