/// <summary> /// Removes a parent-child relationship. /// </summary> public PropertyMapping RemoveChildParentRelationship() { this.ChildParentRelationship = null; return(this); }
/// <summary> /// Sets up a foreign key relationship with another entity. /// </summary> /// <param name="relatedEntityType">Foreign entity type.</param> /// <param name="referencingEntityPropertyName">The name of the property on the current entity that would hold the referenced entity when instructed to do so in a JOIN statement.</param> internal PropertyMapping SetChildParentRelationship(Type relatedEntityType, string referencingEntityPropertyName) { this.ChildParentRelationship = new PropertyMappingRelationship(relatedEntityType, referencingEntityPropertyName); return(this); }