How create LINQ to delete records in some EF related tables

  • Thread starter Thread starter zleug
  • Start date Start date
Z

zleug

Guest
Hi All.

In my project the source is Entity Frameworks tables. I would like create method with LINQ to delete records from some related tables1620823.jpg

This diagram displays related tables. For example, if in the EmployeeDept table need to be delete record DepartmentId=7 so in the EmployeeTask table should be deleted all records with related EmployeeDeptId number. If that is possible. How create LINQ or lambda to perform delete method? I will appreciate for detail explanation and sample.

Thanks.

Continue reading...
 
Back
Top