Entity Developer resets IdGenerator property value
Posted: Sun 11 Jan 2015 13:39
I am using Entity Developer version 5.7.469 trial version. And I just noticed a strange behavior. Actually it's not just strange but also creating error.
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):
and this is what was generated after closing the model file and reopen it.
Is this really a bug, of am i just overlooked something?
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;