Need help in UnitOfWork class.

hello,

I am using UnitOfWork Class. I have 2 tables. Table1 and Table 2.

Everything seems properly set. Table1 is master and Table2 is child. Both table’s fields has been set in loop and finally saveChanges() has been made outside of loop.

The problem is Table2 is not storing the recId of table1. Please tell me what I am missing.

Thanks,

Abhishek

can you share that code where you are updating the data in tables?

Hi Ven,

I am trying to add data in PurchReqLine to one customized table. Code is copied from MSDN. But I think some properties is making the mistake. Can you tell me what is the prerequisites for UnitOfWork Classes.

Thanks,
Abhishek