//---------------------------------------------------------------------------- /// <summary> /// Utilisée pour la recherche de références externes liées à cette Action /// </summary> /// <param name="contexteGetRef"></param> /// <returns></returns> public object[] GetReferencesExternesExplicites(CContexteGetReferenceExterne contexteGetRef) { if (contexteGetRef != null) { CContexteDonnee contexte = (CContexteDonnee)contexteGetRef.GetObjetAttache(typeof(CContexteDonnee)); if (contexte != null) { if (ExpressionEntiteDestination != null) { Type typeDestination = ExpressionEntiteDestination.TypeDonnee.TypeDotNetNatif; if ((typeof(IElementAChamps)).IsAssignableFrom(typeDestination)) { CRoleChampCustom role = CRoleChampCustom.GetRoleForType(typeDestination); Type[] typeDefinisseursChamps = role.TypeDefinisseurs; if (typeDefinisseursChamps.Length > 0) { CObjetDonneeAIdNumeriqueAuto definisseur = (CObjetDonneeAIdNumeriqueAuto)Activator.CreateInstance(typeDefinisseursChamps[0], new object[] { contexte }); if (DbKeyDefinisseurChampsCustomEntiteDestination != null) { if (definisseur.ReadIfExists(DbKeyDefinisseurChampsCustomEntiteDestination)) { return new object[] { definisseur } } ; } } } } } } return(new object[] { }); } }
////////////////////////////////////////////////////////////////////////////////// public object[] GetReferencesExternesExplicites(CContexteGetReferenceExterne contexteGetRef) { CObjetDonnee objet = GetObjetNomme(); if (objet != null) { return new object[] { objet } } ; return(new object[0]); } }