public override void SetInfoFieldFromObject(DomainObject pobj, DomainObjectInfo info, IPersistenceContext pctx) { Entity entity = (Entity)GetClassFieldValue(pobj); if (entity != null && pctx.IsProxyLoaded(entity)) { SetInfoFieldValue(info, _entityConversion.GetInfoFromObject(entity, pctx)); } }
public override void SetInfoFieldFromObject(DomainObject pobj, DomainObjectInfo info, IPersistenceContext pctx) { IEnumerable pobjCollection = (IEnumerable)GetClassFieldValue(pobj); if (pobjCollection != null && pctx.IsCollectionLoaded(pobjCollection)) { List <TInfoElement> infoCollection = new List <TInfoElement>(); foreach (object element in pobjCollection) { infoCollection.Add((TInfoElement)_elementConversion.GetInfoFromObject(element, pctx)); } SetInfoFieldValue(info, infoCollection); } }
public override void SetInfoFieldFromObject(DomainObject pobj, DomainObjectInfo info, IPersistenceContext pctx) { SetInfoFieldValue(info, _valueConversion.GetInfoFromObject(GetClassFieldValue(pobj), pctx)); }