If I execute the following code:
_bsImportPlan =
new BindingSource();_importPlanList =
ImportPlanEditableRootList.GetImportPlanEditableRootList();_bsImportPlan.DataSource = _importPlanList;
prior to setting the DataSource, the edit level for _importPlanList is 0
after setting the DataSource, the edit level has been increased to 1.
The data acces routines of the children in the list have the attribute
[
Transactional(TransactionalTypes.TransactionScope)].If I change this to be [Transactional(TransactionalTypes.Manual)] then the edit level does not get incremented when the DataSource is set.
I don't understand why the edit level is being incremented. Is this expected behavior? How do others deal with this?
Copyright (c) Marimer LLC