In JSON file IsShippingRequired field set as "Nullable": true, but RADtool creates field without nullable property public virtual bool IsShippingRequired { get; set; }
{ "IsRegenerate": false, "MenuPosition": "main", "RelativeNamespace": "OrderManagement", "EntityName": "OrderPool", "EntityNamePlural": "OrderPools", "TableName": "OrderPool", "PrimaryKeyType": "int", "BaseClass": "Entity", "EntityHistory": true, "AutoMigration": false, "UpdateDatabase": false, "FormatGeneratedFiles": false, "CreateUserInterface": true, "CreateViewOnly": false, "CreateExcelExport": false, "IsNonModalCRUDPage": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "ItemUnitPrice", "Type": "decimal", "Range": { "IsRangeSet": false, "MaximumValue": 0, "MinimumValue": 0 }, "Regex": "", "Nullable": true, "Required": false, "MaxLength": null, "MinLength": null, "UserInterface": { "List": true, "AdvancedFilter": false, "CreateOrUpdate": true } }, { "Name": "ItemTax", "Type": "decimal", "Range": { "IsRangeSet": false, "MaximumValue": 0, "MinimumValue": 0 }, "Regex": "", "Nullable": true, "Required": false, "MaxLength": null, "MinLength": null, "UserInterface": { "List": true, "AdvancedFilter": false, "CreateOrUpdate": true } }, { "Name": "LastUpdatedDate", "Type": "DateTime", "Regex": "", "Nullable": true, "Required": false, "MaxLength": null, "MinLength": null, "UserInterface": { "List": true, "AdvancedFilter": false, "CreateOrUpdate": true } }, { "Name": "LatestShipDate", "Type": "DateTime", "Regex": "", "Nullable": true, "Required": false, "MaxLength": null, "MinLength": null, "UserInterface": { "List": true, "AdvancedFilter": false, "CreateOrUpdate": true } }, { "Name": "IsShippingRequired", "Type": "bool", "Regex": "", "Nullable": true, "Required": false, "MaxLength": null, "MinLength": null, "UserInterface": { "List": true, "AdvancedFilter": false, "CreateOrUpdate": true } }, ......
3 Answer(s)
-
0
Hi @FahrettinOzturk
In Power Tools, the nullable feature is disabled when creating a property of type bool. By default, a boolean property is set as non-nullable. If you are not using the latest version of Power Tools, you may consider updating it. The latest version of Power Tools is v4.5.3, so if you are using an older version, you may want to upgrade.
-
0
Actually I am using RAdtool for mac so I do my settings in JSON. In your answer you mean that I can not use Nullable bool type correct ? For my business needs I need to use nullable bool type. Can you please explain why you disabled nullable option for bool ?
-
0
Hi @FahrettinOzturk
A nullable boolean is typically used to represent missing data or ambiguous states, but it can complicate the code and make it harder to understand. In many cases, only true or false values are sufficient, and adding a null value may be unnecessary. Therefore, nullable boolean has been disabled in Power Tools.