Beispiel #1
0
		public static ReferenceConstraint GetReferenceConstraint(ColumnReference element)
		{
			return DslModeling::DomainRoleInfo.GetLinkedElement(element, ColumnReferenceDomainRoleId) as ReferenceConstraint;
		}
Beispiel #2
0
		public static void SetReferenceConstraint(ColumnReference element, ReferenceConstraint newReferenceConstraint)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, ColumnReferenceDomainRoleId, newReferenceConstraint);
		}
Beispiel #3
0
		/// <summary>
		/// Constructor
		/// Creates a ReferenceConstraintContainsColumnReference link in the same Partition as the given ReferenceConstraint
		/// </summary>
		/// <param name="source">ReferenceConstraint to use as the source of the relationship.</param>
		/// <param name="target">ColumnReference to use as the target of the relationship.</param>
		public ReferenceConstraintContainsColumnReference(ReferenceConstraint source, ColumnReference target)
			: base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(ReferenceConstraintContainsColumnReference.ReferenceConstraintDomainRoleId, source), new DslModeling::RoleAssignment(ReferenceConstraintContainsColumnReference.ColumnReferenceDomainRoleId, target)}, null)
		{
		}