There's another design-time related issue with AutoInc fields: see forum post https://forum.lazarus.freepascal.org/index.php/topic,49614.msg360102.html#msg360102. The post contains a small demo to show the issue.