Skip to content

Insert record and get primary key back #26

Answered by maxtoroq
maniish asked this question in Q&A
Discussion options

You must be logged in to vote

Use IsPrimaryKey = true, IsDbGenerated = true in the column mapping. After Calling Add the primary key should be set.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maxtoroq
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
Converted from issue

This discussion was converted from issue #26 on December 08, 2020 23:33.