/// <exception cref="RelationshipException"> /// Cannot create relationship between the two types. /// </exception> /// <exception cref="ArgumentNullException"> /// <paramref name="parentType"/> or <paramref name="innerType"/> is null. /// </exception> public NestingRelationship AddNesting(CompositeType parentType, TypeBase innerType) { NestingRelationship nesting = new NestingRelationship(parentType, innerType); AddNesting(nesting); return(nesting); }
public NestingRelationship Clone(CompositeType parentType, TypeBase innerType) { var nesting = new NestingRelationship(parentType, innerType); nesting.CopyFrom(this); return(nesting); }
public NestingRelationship Clone(INestable parentType, INestableChild innerType) { NestingRelationship nesting = new NestingRelationship(parentType, innerType); nesting.CopyFrom(this); return(nesting); }
public bool InsertNesting(NestingRelationship nesting) { if ((nesting != null) && !relationships.Contains(nesting) && entities.Contains(nesting.First) && entities.Contains(nesting.Second)) { AddNesting(nesting); return(true); } return(false); }
protected virtual void AddNesting(NestingRelationship nesting) { AddRelationship(nesting); }
public NestingRelationship Clone(CompositeType parentType, TypeBase innerType) { NestingRelationship nesting = new NestingRelationship(parentType, innerType); nesting.CopyFrom(this); return nesting; }
/// <exception cref="ArgumentNullException"> /// <paramref name="nesting"/> is null.-or- /// <paramref name="startShape"/> is null.-or- /// <paramref name="endShape"/> is null. /// </exception> public Nesting(NestingRelationship nesting, Shape startShape, Shape endShape) : base(nesting, startShape, endShape) { this.nesting = nesting; }