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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13