public override void SetObjectFieldFromInfo(DomainObject pobj, DomainObjectInfo info, IPersistenceContext pctx) { IList infoCollection = (IList)GetInfoFieldValue(info); if (infoCollection != null) { IEnumerable pobjCollection = (IEnumerable)GetClassFieldValue(pobj); foreach (object element in infoCollection) { if (pobjCollection is IList) { (pobjCollection as IList).Add(_elementConversion.GetObjectFromInfo(element, pctx)); } else if (pobjCollection is ISet) { (pobjCollection as ISet).Add(_elementConversion.GetObjectFromInfo(element, pctx)); } } } }
public override void SetObjectFieldFromInfo(DomainObject pobj, DomainObjectInfo info, IPersistenceContext pctx) { SetClassFieldValue(pobj, _valueConversion.GetObjectFromInfo(GetInfoFieldValue(info), pctx)); }