1) EntityCollection<T>.AddNew() sets IsNewViaDataBinding = true
2) CancelEdit removes Entities from their parent collection where IsNewViaDataBinding = true
So the New child entities which I lovingly created using AddNew way before it got anywhere near a grid are now being deleted each time I press ESC in the grid.
I can't follow how, where or why _editCycleInProgress/_pendingCancelEdit get used but why is AddNew on a plain EntityCollectionBase2 making the assumption it is being called via databinding?
Surely databinding would only arrive in AddNew via an EntityView2 in which case EntityView2 could have had its own special internal method which does the same then sets that flag?
I could use Add instead of AddNew but I override AddNew so that I can call a custom UseDefaultValuesForNewEntity() method.
Adapter; v3.5.12.0330;