internal static global::System.Collections.ObjectModel.ReadOnlyCollection <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition> GetLinks(global::ORMSolutions.ORMArchitect.CustomProperties.CustomProperty source, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyDefinition target) { global::System.Collections.Generic.List <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition> outLinks = new global::System.Collections.Generic.List <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition>(); global::System.Collections.Generic.IList <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition>(source, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition.CustomPropertyDomainRoleId); foreach (global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition link in links) { if (target.Equals(link.CustomPropertyDefinition)) { outLinks.Add(link); } } return(outLinks.AsReadOnly()); }
internal static global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition GetLink(global::ORMSolutions.ORMArchitect.CustomProperties.CustomProperty source, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyDefinition target) { global::System.Collections.Generic.IList <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition>(source, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition.CustomPropertyDomainRoleId); foreach (global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition link in links) { if (target.Equals(link.CustomPropertyDefinition)) { return(link); } } return(null); }
internal static global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition GetLinkToCustomPropertyDefinition(global::ORMSolutions.ORMArchitect.CustomProperties.CustomProperty customPropertyInstance) { global::System.Collections.Generic.IList <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition>(customPropertyInstance, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition.CustomPropertyDomainRoleId); global::System.Diagnostics.Debug.Assert(links.Count <= 1, "Multiplicity of CustomProperty not obeyed."); if (links.Count == 0) { return(null); } else { return(links[0]); } }