Exemple #1
0
 public static void IgnoreNonCollectionNavigation(InternalEntityBuilder entityBuilder)
 {
     if (entityBuilder.Metadata.Type == typeof(MultipleNavigationsSecond))
     {
         entityBuilder.Ignore(NonCollectionNavigationProperty.Name, ConfigurationSource.DataAnnotation);
     }
 }
Exemple #2
0
 public static void IgnoreNavigation(InternalEntityBuilder entityBuilder)
 {
     if (entityBuilder.Metadata.Type == typeof(OneToManyDependent))
     {
         entityBuilder.Ignore(NavigationProperty.Name, ConfigurationSource.DataAnnotation);
     }
 }