How can I force the EntityDAC to set an auto_increment ID after an EntityDAC object was saved?
I am using MySQL 5.6, the last version of EntityDAC and Code-mapped Entities.
Code: Select all
MO := TMyObject.Create();
MO.Name := 'Test';
MO.Attach(DataModule.EntityContext1);
MO.Save;
MO.Id -> 0 // but the value of this auto_increment ID in the database 28305