|
Was this issue ever resolved? I am now running into the "Null or pending entities cannot be modified" error. In my particular case I have bound an Employee entity to my UI. The Employee entity may or may not have a related Demographic entity. If the Employee entity does not have a related Demographic entity when I examine the contents of my EntityManager I see a "detached" Demographic entity related to the Employee entity. If I try to set a field in my UI (GenderID) that is in the Demographic entity I get the error.
Here is my stack trace:
at IdeaBlade.EntityModel.EntityGroup.OnEntityPropertyChanging(EntityPropertyChangingEventArgs e) at IdeaBlade.EntityModel.EntityWrapper.SetValueWithChangeNotification(DataEntityProperty property, Object newValue) at IdeaBlade.EntityModel.EntityWrapper.IdeaBlade.EntityModel.IStructuralObject.SetValueWithChangeNotification(DataEntityProperty property, Object newValue) at IdeaBlade.EntityModel.DataEntityProperty`2.SetValueWithVerification(TInstance instance, TValue newValue) at IdeaBlade.EntityModel.DataEntityProperty`2.<.ctor>b__4(DataEntityPropertySetInterceptorArgs`2 args) at IdeaBlade.Core.PropertyInterceptor`3.HandleAction(Action`1 action, TArgs args) at IdeaBlade.Core.PropertyInterceptor`3.<>c__DisplayClassb.<BuildTargetedCombinedAction>b__5(TArgs args) at IdeaBlade.Core.PropertyInterceptor`3.ExecuteActions(TArgs args) at IdeaBlade.Core.PropertyInterceptor`3.SetValue(TInstance instance, Object context, TValue value) at IdeaBlade.Core.PropertyInterceptor`3.SetValue(TInstance instance, TValue value) at IdeaBlade.EntityModel.DataEntityProperty`2.SetValue(TInstance instance, TValue value) at OrianaHouse.CMIS.Data.DataModel.Demographic.set_GenderID(Byte value)
|