/// <summary> /// Retrieves the foreign key in this mapping and all its children /// </summary> /// <returns></returns> public IEnumerable <ForeignKeyMappingInfo> GetForeignKeys() { var thisLevelFks = SimpleProperties.OfType <ForeignKeyMappingInfo>(); var lowerLevelsFks = CollectionProperties.SelectMany(e => e.GetForeignKeys()); return(thisLevelFks.Concat(lowerLevelsFks)); }
public IEnumerable <PropertyMappingInfo> AllPropertyMappings() => SimpleProperties .Concat(CollectionProperties.SelectMany(p => p.AllPropertyMappings()));