#1 2013-11-26 17:10:58

wai-kit
Member
From: Amsterdam, the Netherlands
Registered: 2012-11-27
Posts: 90

How to define a published field as not null?

Hi,

I could not find this in the SAD, but how do I define a field as being not null? To define a field as unique, I would specify
'stored false' when defining a published property.
Someone?

Thanks,

Wai


fpcdeluxe, FPC 3.2 / Lazarus 2.0, mORMot on Windows 10 ...

Offline

#2 2013-11-26 23:26:12

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: How to define a published field as not null?

There is no such feature by now, unless you use a custom validator pattern.

My concern about such a feature is that there is no NULLable value in Delphi (with the exception of the variants).
How could we map those values at Delphi code level???

See the SAD pdf about this point.

Offline

#3 2013-11-28 14:49:47

wai-kit
Member
From: Amsterdam, the Netherlands
Registered: 2012-11-27
Posts: 90

Re: How to define a published field as not null?

Okay. Then I have to find the solution it in Delphi.
Thank you for the answer.


fpcdeluxe, FPC 3.2 / Lazarus 2.0, mORMot on Windows 10 ...

Offline

Board footer

Powered by FluxBB