Beispiel #1
0
        /// <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));
        }
Beispiel #2
0
 public IEnumerable <PropertyMappingInfo> AllPropertyMappings() => SimpleProperties
 .Concat(CollectionProperties.SelectMany(p => p.AllPropertyMappings()));