Skip to content

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

Open
@lesley-w

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions