The setup: EntityFramework POCO with proxies (+LazyLoading)
Component
and Part
classes both implement IDataErrorInfo
(if this is necessary). The following code throws exception:
// Context is a singleton here
Context.LoadProperty<Part>(
partEntity,
(e) => e.ChildComponents,
MergeOption.OverwriteChanges);
The ambiguous property is ChildComponents
as I can tell yet there is no other property with the same name, its only definition is:
public virtual ICollection<Component> ChildComponents { get; set; }
This is overridden in EF proxy and changed into something like
public virtual EntityCollection<Component> ChildComponents { get; set; }
Yet this issue just appeared and I cannot understand why now as there were no real changes.