Starts in:
2 DAYS
5 HRS
12 MIN
56 SEC
Starts in:
2 D
5 H
12 M
56 S
Open Closed

Abp Suite generates an incorrect default float value #4718


User avatar
0
info@ericverschoor.nl created
  • ABP Framework version: v7.0.1
  • UI type: Blazor
  • DB provider: EF Core

In ABP suite, when generating code for a float property with a default value, the default value is incorrect. A default float value must be suffixed with an 'f'.

not tested, but double and decimal should also be suffixed https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/floating-point-numeric-types#real-literals

note: i'm not able to enter a char in the default value input. It must be a number.

(please refund this ticked)


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

    I've created an internal issue. Thank you for reporting.

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