{ /// <summary> /// Constuctor. /// </summary> /// <param name="viewModelStore">The store this view model belongs to.</param> /// <param name="serializedRelationship">SerializedRelationship.</param> /// <param name="referencedElement">Element that is referenced by the serialization element. Can be null.</param> public SerializedEmbeddingRelationshipViewModel(ViewModelStore viewModelStore, SerializedEmbeddingRelationship serializedRelationship, SerializationClassViewModel parent) : base(viewModelStore, serializedRelationship, serializedRelationship.EmbeddingRelationship, parent) { if (this.SerializationElement.EmbeddingRelationship != null) { this.sourceRoleVM = new SerializedDomainRoleViewModel(this.ViewModelStore, this.SerializationElement.EmbeddingRelationship.Source, this.SerializationElement.EmbeddingRelationship, this); this.targetRoleVM = new SerializedDomainRoleViewModel(this.ViewModelStore, this.SerializationElement.EmbeddingRelationship.Target, this.SerializationElement.EmbeddingRelationship, this); } }
{ /// <summary> /// Constuctor. /// </summary> /// <param name="viewModelStore">The store this view model belongs to.</param> /// <param name="serializedRelationship">SerializedRelationship.</param> /// <param name="referencedElement">Element that is referenced by the serialization element. Can be null.</param> public SerializedEmbeddingRelationshipViewModel(ViewModelStore viewModelStore, SerializedEmbeddingRelationship serializedRelationship, SerializationClassViewModel parent) : base(viewModelStore, serializedRelationship, serializedRelationship.EmbeddingRelationship, parent) { if (this.SerializationElement.EmbeddingRelationship != null) { this.sourceRoleVM = new SerializedDomainRoleViewModel(this.ViewModelStore, this.SerializationElement.EmbeddingRelationship.Source, this.SerializationElement.EmbeddingRelationship, this); this.targetRoleVM = new SerializedDomainRoleViewModel(this.ViewModelStore, this.SerializationElement.EmbeddingRelationship.Target, this.SerializationElement.EmbeddingRelationship, this); } }