locked
How create LINQ to delete records in some EF related tables RRS feed

  • Question

  • Hi All.

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

    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.




    • Edited by zleug Friday, October 2, 2020 5:44 PM
    Friday, October 2, 2020 5:37 PM

All replies