Auto Generated Value is not available in Delphi
Posted: Mon 24 Apr 2017 23:36
According to EntityDAC's help file, it is possible to define Entity Keys which can be auto-generated by the underlying database. It is a good feature because in databases like Oracle it is necessary to define a sequence and create a trigger for assigning sequence values to the primary key.
I'm using SQL Server 2016 and the option to enable this particular feature for my Entity Keys is just missing in action.
I tried defining the primary key in the database as IDENTITY and synchronized the model from the database. The Entity Key was showing the correct SQL type (ID NOT NULL IDENTITY), but it was lost the next time I updated the database from the model.
I assume that this is just a regression bug.
I'm using SQL Server 2016 and the option to enable this particular feature for my Entity Keys is just missing in action.
I tried defining the primary key in the database as IDENTITY and synchronized the model from the database. The Entity Key was showing the correct SQL type (ID NOT NULL IDENTITY), but it was lost the next time I updated the database from the model.
I assume that this is just a regression bug.