Ejemplo n.º 1
0
 internal static global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition GetLink(global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroup source, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyDefinition target)
 {
     global::System.Collections.Generic.IList <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition>(source, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition.CustomPropertyGroupDomainRoleId);
     foreach (global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition link in links)
     {
         if (target.Equals(link.CustomPropertyDefinition))
         {
             return(link);
         }
     }
     return(null);
 }
Ejemplo n.º 2
0
 internal static global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition GetLinkToCustomPropertyGroup(global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyDefinition customPropertyDefinitionInstance)
 {
     global::System.Collections.Generic.IList <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition>(customPropertyDefinitionInstance, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition.CustomPropertyDefinitionDomainRoleId);
     global::System.Diagnostics.Debug.Assert(links.Count <= 1, "Multiplicity of CustomPropertyDefinition not obeyed.");
     if (links.Count == 0)
     {
         return(null);
     }
     else
     {
         return(links[0]);
     }
 }
Ejemplo n.º 3
0
 internal static global::System.Collections.ObjectModel.ReadOnlyCollection <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition> GetLinks(global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroup source, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyDefinition target)
 {
     global::System.Collections.Generic.List <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition>  outLinks = new global::System.Collections.Generic.List <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition>();
     global::System.Collections.Generic.IList <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition> links    = DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition>(source, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition.CustomPropertyGroupDomainRoleId);
     foreach (global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyGroupContainsCustomPropertyDefinition link in links)
     {
         if (target.Equals(link.CustomPropertyDefinition))
         {
             outLinks.Add(link);
         }
     }
     return(outLinks.AsReadOnly());
 }
Ejemplo n.º 4
0
 internal static global::System.Collections.ObjectModel.ReadOnlyCollection <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition> GetLinksToCustomPropertyCollection(global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyDefinition customPropertyDefinitionInstance)
 {
     return(DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition>(customPropertyDefinitionInstance, global::ORMSolutions.ORMArchitect.CustomProperties.CustomPropertyHasCustomPropertyDefinition.CustomPropertyDefinitionDomainRoleId));
 }