Replicating fields/properties of type enumeration

Hi,

Is it the case that a field/property of type enumeration has to have the constraint NOT NULL?
I was just thinking than when replicating data from my server to a local database a value of NULL in a field that represents an enumeration can not be mapped to an element in an enumeration.

Leif Eirik

Not really, you can have nullable enumerated types. But to properly tell from Delphi if the field is NULL or default value, you should declared it in Aurelius entity class as Nullable<TMyEnumType>.

Ahh, of course you’re right!!

I had what looked like a strange bug client side, but it turned out to just be me forgetting to recompile the server with latest model changes.

My bad :)

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.