Crosslight SQLite PrimaryKey AutoIncrement

1 reply. Last post: May 3, 2016 4:35 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello Crosslight Support,

I have a question about Crosslihgt SQLite and primary keys with auto increment.

If the primary key as an integer, why do I have to set it to -100 (as in the data sqlite sample) in order to work properly? Is this by design or any other reason? 

Setting it to -1 works as well. But leaving it to 0 just saves the first entity and throws an exception when saving the second entity. Other ORMs like Entity Framework handle a 0 value without any problem.

Thanks for clarifying.

Thomas

All times are GMT -5. The time now is 8:05 PM.
Previous Next