Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create a new entity where primary key is entered by the user #131

Open
lesley-w opened this issue Mar 30, 2021 · 0 comments
Open

Comments

@lesley-w
Copy link

We have a situation where user needs to be able to create new records, however, the primary key is not an auto-increment. It has to be entered by the user as it is provided to them from an external source.

Using SQL Profiler I can see that the code does a SELECT statement looking for an existing record with the Id provided. It returns nothing, however, instead of then running an INSERT statement, the code runs an UPDATE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant