sqlite - intiger filed is always auto generated
sqlite - intiger filed is always auto generated
For Sqlite database a primary key field with type 'integer' is generated as 'Auto Generated Value' even if it hasn't 'autoincrement' attribute.
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
The point is that integer primary key is auto-generated in SQLite, regardless of whether the 'autoincrement' keyword is used or not:
http://www.sqlite.org/faq.html#q1
However, we plan to implement an option controlling this behaviour: if this option is enabled, the integer primary key will not be marked as auto-generated by default in the model. We will post here when the corresponding build is available. At the moment, you can clear the 'Auto Generated Value' check box manually to be able to insert custom values into integer primary key columns.
http://www.sqlite.org/faq.html#q1
However, we plan to implement an option controlling this behaviour: if this option is enabled, the integer primary key will not be marked as auto-generated by default in the model. We will post here when the corresponding build is available. At the moment, you can clear the 'Auto Generated Value' check box manually to be able to insert custom values into integer primary key columns.
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
New version of Entity Developer 4.2 is released!
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=22845 .
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=22845 .