public static global::ORMSolutions.ORMArchitect.Core.ShapeModel.FactTypeShapeHasRoleDisplayOrder GetLink(global::ORMSolutions.ORMArchitect.Core.ShapeModel.FactTypeShape source, global::ORMSolutions.ORMArchitect.Core.ObjectModel.RoleBase target)
 {
     global::System.Collections.Generic.IList <global::ORMSolutions.ORMArchitect.Core.ShapeModel.FactTypeShapeHasRoleDisplayOrder> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.Core.ShapeModel.FactTypeShapeHasRoleDisplayOrder>(source, global::ORMSolutions.ORMArchitect.Core.ShapeModel.FactTypeShapeHasRoleDisplayOrder.FactTypeShapeDomainRoleId);
     foreach (global::ORMSolutions.ORMArchitect.Core.ShapeModel.FactTypeShapeHasRoleDisplayOrder link in links)
     {
         if (target.Equals(link.RoleDisplayOrder))
         {
             return(link);
         }
     }
     return(null);
 }
 public static DslModeling::LinkedElementCollection <FactTypeShape> GetFactTypeShapeCollection(global::ORMSolutions.ORMArchitect.Core.ObjectModel.RoleBase element)
 {
     return(GetRoleCollection <DslModeling::LinkedElementCollection <FactTypeShape>, FactTypeShape>(element, RoleDisplayOrderDomainRoleId));
 }
 public static global::System.Collections.ObjectModel.ReadOnlyCollection <global::ORMSolutions.ORMArchitect.Core.ShapeModel.FactTypeShapeHasRoleDisplayOrder> GetLinksToFactTypeShapeCollection(global::ORMSolutions.ORMArchitect.Core.ObjectModel.RoleBase roleDisplayOrderInstance)
 {
     return(DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.Core.ShapeModel.FactTypeShapeHasRoleDisplayOrder>(roleDisplayOrderInstance, global::ORMSolutions.ORMArchitect.Core.ShapeModel.FactTypeShapeHasRoleDisplayOrder.RoleDisplayOrderDomainRoleId));
 }
Exemple #4
0
 /// <summary>
 /// Constructor
 /// Creates a FactTypeShapeHasRoleDisplayOrder link in the same Partition as the given FactTypeShape
 /// </summary>
 /// <param name="source">FactTypeShape to use as the source of the relationship.</param>
 /// <param name="target">RoleBase to use as the target of the relationship.</param>
 public FactTypeShapeHasRoleDisplayOrder(FactTypeShape source, global::ORMSolutions.ORMArchitect.Core.ObjectModel.RoleBase target)
     : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[] { new DslModeling::RoleAssignment(FactTypeShapeHasRoleDisplayOrder.FactTypeShapeDomainRoleId, source), new DslModeling::RoleAssignment(FactTypeShapeHasRoleDisplayOrder.RoleDisplayOrderDomainRoleId, target) }, null)
 {
 }