/// <summary>
 /// Initializes a new instance of the <see cref="Relationship" /> class.
 /// </summary>
 /// <param name="copyRelationship">The copy relationship.</param>
 public EntityRelationshipModel(EntityRelationshipModel copyRelationship)
     : this()
 {
     this.Name                         = copyRelationship.Name;
     this.ColumnName                   = copyRelationship.ColumnName;
     this.ConstrainName                = copyRelationship.ConstrainName;
     this.InverseRelationshipName      = copyRelationship.InverseRelationshipName;
     this.SupportMultipleRelationships = copyRelationship.SupportMultipleRelationships;
     this.TargetTableName              = copyRelationship.TargetTableName;
 }
Exemple #2
0
 /// <summary>
 /// Deletes the relationship.
 /// </summary>
 /// <param name="relationship">The relationship.</param>
 public void DeleteRelationship(EntityRelationshipModel relationship)
 {
     this.Relationships.Remove(relationship);
     this.DeletedRelationships.Add(new EntityRelationshipModel(relationship));
 }