EIdNotSetException with Bigint(identity) starting 0!

I'm not sure if this is an Aurelius or Data Modeler topic but it looks more as Aurelius to me ...

I'm working on MSSQL using FDAC:

Here is what I have in pictures, files in the archive at bottom:
DataModeler: Domain definition (note seed:0!):

DataModeler: Table definition

For those records in the database ...
image

... the first line of this code segment works fine ...


the second line brings up

To me it looks like Aurelius treats an identity value of 0 as not set.
I'd like to agree with that, but then DataModeler should set up the type accordingly.

Did I miss anything and it's my fault or is it a "bug"?

Regards
Kai

Files attached:
IoT.zip (5.2 KB)

Correct.

I'm afraid I don't understand what you mean here?

If zero is a valid id value for your database, then you should make to tell Aurelius so, using IdUnsavedValue, as discusses in a few topics:

Yes, I missed something.
Thank you for the answer.

1 Like

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