Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Sql exception when removing item from Scope.ScopeClaims #22

@hrjjml

Description

@hrjjml

here's my code snippet:

scope.ScopeClaims.Remove(claim);
_scopeContext.Update(scope);
await _scopeContext.SaveChangesAsync();

here's the exception:
System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'ScopeId', table 'ScopeClaims'; column does not allow nulls. UPDATE fails.
The statement has been terminated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions