Upon loading existing file, IdGenerator property of all classes in my model file will be reset into Custom. I previously set them into Increment. This bug causes the subsequent code generations produce invalid code. So currently I have to go to each of the classes and set them back to Increment manually before generating code.
Example of correct code (a little part related with IdGenerator value):
Code: Select all
[Table('dbo.CH_Client')]
[Model('SedeaDataModel')]
[Key('FClientId')]
TChangeClient = class(TMappedEntity)
private
[Column('ClientID')]
[Generator(gtTable, gfOnInsert)]
FClientId: Integer;
Code: Select all
[Table('dbo.CH_Client')]
[Model('SedeaDataModel')]
[Key('FClientId')]
TChangeClient = class(TMappedEntity)
private
[Column('ClientID')]
[Generator(gtCustom, gfOnInsert)]
FClientId: Integer;