Exemple #1
0
		public static DslModeling::LinkedElementCollection<EntityShape> GetEntityShapes(Relationshipshape element)
		{
			return GetRoleCollection<DslModeling::LinkedElementCollection<EntityShape>, EntityShape>(element, RelationshipshapeDomainRoleId);
		}
Exemple #2
0
		/// <summary>
		/// Constructor
		/// Creates a EntityShapeReferencesRelationshipshape link in the same Partition as the given EntityShape
		/// </summary>
		/// <param name="source">EntityShape to use as the source of the relationship.</param>
		/// <param name="target">Relationshipshape to use as the target of the relationship.</param>
		public EntityShapeReferencesRelationshipshape(EntityShape source, Relationshipshape target)
			: base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(EntityShapeReferencesRelationshipshape.EntityShapeDomainRoleId, source), new DslModeling::RoleAssignment(EntityShapeReferencesRelationshipshape.RelationshipshapeDomainRoleId, target)}, null)
		{
		}