예제 #1
0
        private static void ProcessPrincipalEntity(InternalEntityEntry entityEntry, List <ModifiedObjectMetadata> modifyObjectsMetada, IForeignKey foreignKey, InternalEntityEntry principaEntityEntry)
        {
            ModifiedObjectMetadata    modifyObjectMetadaNavigation = GetOrCreateMetaData(modifyObjectsMetada, principaEntityEntry.Entity);
            IEnumerable <INavigation> findNavigationsTo            = foreignKey.FindNavigationsFrom(principaEntityEntry.EntityType);

            foreach (var entityNavigation in findNavigationsTo)
            {
                if (!modifyObjectMetadaNavigation.NavigationProperties.Contains(entityNavigation.Name))
                {
                    modifyObjectMetadaNavigation.NavigationProperties.Add(entityNavigation.Name);
                }
            }
        }