Explanation
What I meant was, let us say I have 4 forms.
1. Customer
2. Material
3. Order
4. Bill
I have to write transaction management in each form then call appropriate saveentity in each form.
What I want to do is
- I want to avoid writing transaction management code in each form and also call to save / delete /update entity
INSTEAD,
I just want to write a class file with one function to saveentity, one to updateentity and one to deleteentity.
So it would look something like
adapter.StartTransaction(IsolationLevel.ReadCommitted, );
saveentity (table1, table2 table3 etc.) as the case may be.
This way i do not have to write CRUD procedure in each form but can write a single function and pass table names to that.