current position:Home>In EF core, how to create a sequence and set nextvalue as the default value when defining the ID of a table?

In EF core, how to create a sequence and set nextvalue as the default value when defining the ID of a table?

2022-02-02 22:25:07 CSDN Q & A

The phenomenon and background of the problem

EF Core in , How to achieve Table The table definition ID when , establish sequence And set up nextValue As default ?

Operation results and error reporting contents
My solution ideas and tried methods
What I want to achieve



Refer to the answer 1:

stay insert Called when assigning values in the statement .




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022225039889.html

Random recommended