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

Prevent cascade delete when deleting physicians #85

Open
Kupinaaa opened this issue Oct 7, 2024 · 0 comments
Open

Prevent cascade delete when deleting physicians #85

Kupinaaa opened this issue Oct 7, 2024 · 0 comments
Labels
backend Working on backend (C#) bug Something isn't working

Comments

@Kupinaaa
Copy link
Owner

Kupinaaa commented Oct 7, 2024

Deleting a physician would result in all of his dependents to be deleted, which means that all the visits that that physicians had would be deleted with it. This is unwanted behavior, I should look into flagging a physician as deleted instead, or having a dummy physician to rewire the visits to, so that they do not stay deleted. I could also make the physician foreign key nullable and then override the default delete cascading behavior of EF.

@Kupinaaa Kupinaaa added bug Something isn't working backend Working on backend (C#) labels Oct 7, 2024
@Kupinaaa Kupinaaa self-assigned this Oct 7, 2024
@Kupinaaa Kupinaaa removed their assignment Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Working on backend (C#) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant