First collection Name : iclbAppSalaryRequest

Second collection Name : lclbPreAppsalary

Both collections contain same table values.

My first collection iclbAppSalaryRequest will be the modified user data from the c# application (Grid).

Second collection lclbPreAppsalary contains the previous data before modified by user.

Currently I delete the table and add the new collection values. But I don't want to delete this instead I need to compare the first collection with second one if any changes happens in first collection then I need to update the values in the table. If no changes then nothing should be done.

Example :

In this collections has start_Date and end_date fields. If I update these dates then the first collection will be updated and 2nd collection will have old values .So I need compare these two collections and if changes there and need to update it in table .

Related posts

Recent Viewed