Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extending an EDT for a Yes/No enum

I've created my yes/no EDT called IsSpecialCustomer. When I choose the Extends property of NoYesId, it triggers a database sync.

If I use the base enum NoYes, it won't trigger a sync. Is there any reason to use the NoYesId EDT over the NoYes enum?

I understand why I would use it if I were extending SalesQty for example, but since NoYes is a low level enum, and you'll never add Maybe to that, can I use the enum and still be best practice?

Is there any reason to use the EDT NoYesId over the enum NoYes?

like image 727
William YK Avatar asked Apr 12 '16 17:04

William YK


1 Answers

Having a field derived from NoYes will make a drop down list with the two values. Using NoYesId EDT, you'll have a checkbox.

like image 148
Geoffrey DELMEE Avatar answered Oct 01 '22 02:10

Geoffrey DELMEE