Skip to content

Confused by inconsistent behaviour with AutoIncrementing Primary Key #27

Closed Answered by mythz
CharlieArmstrongDev asked this question in Q&A
Discussion options

You must be logged in to vote

The OrmLite attributes, e.g. [AutoIncrement] needs to be on the Data Model (e.g. Address) not on the Request DTO.

and if you have an [AutoIncrement] PK like Id it shouldn't be on the ICreateDb<T> Request DTO as the RDBMS should be generating it.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by CharlieArmstrongDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants