Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
sonal malhotra
1.7k
410
41.3k
The DELETE st conflicted with the REF constraint in mvc
Jan 13 2020 3:36 AM
hello mvc users,
i cant understand that error
The DELETE statement conflicted with the REFERENCE constraint "FK_dbo.Appointments_dbo.Patients_PatientId". The conflict occurred in database "ClinicDB", table "dbo.Appointments", column 'PatientId'.
The statement has been terminated. And
And in patient configuration class
there is code below
HasMany(p => p.Appointments)
.WithRequired(a => a.Patient)
.WillCascadeOnDelete(true);
what else ? anything
how to fix this prob?
Reply
Answers (
11
)
Using .NET DataBinding class to ADD data to local database
How to preview the PDF document and Search the words