i have an dataset with 3 tables in it they have a masterchild relationship,
lets say the dataset is like this
department table
deptID departmentname
1 IT
2 CS
3 EC
employee table
empID Empname DeptID
1 kiran 1
2 manu 2
3 kumar 3
4 ajay 3
now i have to delete value deptID =3 from department table
then all the employee who have DeptID =’3′ have to be deleted from Employee table
how do we do in dataset , is there any builtin function
thanks
Prince5
You have to define a ForeignKeyConstraint and set the rule to cascade:
Now when you delete records in the parent it will delete them in the children as well.