Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Delete options set to None throws exception #257

Closed
@mciprijanovic

Description

@mciprijanovic

Hi Michael, me again. :)
What our team noticed recently is that when we moved to v3 of the tool, we saw different behavior when sql script is generated. If Default mode is set on the relationship itself, tool now generates CASCADE delete. I think that before NO ACTION was default (but maybe I am wrong, since when setting the Default, I see no explicit delete mode set in db context, which means it is up to EF core, not related to the tool probably).
Now, if I change the option to None, I end with the following error in compile time:
'DeleteBehavior' does not contain a definition for 'NoAction'

Can you please confirm the statement about the delete behaviour and check why we can not set None as action.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugreleasedIssue is resolved in a current release

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions