コード例 #1
0
 public static global::EPAM.NHModelingLanguage.EntityHasProperties GetLink(global::EPAM.NHModelingLanguage.Entity source, global::EPAM.NHModelingLanguage.Property target)
 {
     global::System.Collections.Generic.IList <global::EPAM.NHModelingLanguage.EntityHasProperties> links = DslModeling::DomainRoleInfo.GetElementLinks <global::EPAM.NHModelingLanguage.EntityHasProperties>(source, global::EPAM.NHModelingLanguage.EntityHasProperties.EntityDomainRoleId);
     foreach (global::EPAM.NHModelingLanguage.EntityHasProperties link in links)
     {
         if (target.Equals(link.Property))
         {
             return(link);
         }
     }
     return(null);
 }
コード例 #2
0
 public static global::System.Collections.ObjectModel.ReadOnlyCollection <global::EPAM.NHModelingLanguage.EntityHasProperties> GetLinks(global::EPAM.NHModelingLanguage.Entity source, global::EPAM.NHModelingLanguage.Property target)
 {
     global::System.Collections.Generic.List <global::EPAM.NHModelingLanguage.EntityHasProperties>  outLinks = new global::System.Collections.Generic.List <global::EPAM.NHModelingLanguage.EntityHasProperties>();
     global::System.Collections.Generic.IList <global::EPAM.NHModelingLanguage.EntityHasProperties> links    = DslModeling::DomainRoleInfo.GetElementLinks <global::EPAM.NHModelingLanguage.EntityHasProperties>(source, global::EPAM.NHModelingLanguage.EntityHasProperties.EntityDomainRoleId);
     foreach (global::EPAM.NHModelingLanguage.EntityHasProperties link in links)
     {
         if (target.Equals(link.Property))
         {
             outLinks.Add(link);
         }
     }
     return(outLinks.AsReadOnly());
 }