private bool HasManyToManyWithNoInverseWith(EntityType entity, EntityType other) { return(entity.NavigationProperties.Any(p => DependsOn(p, other) && CodeGenerationHelper.IsManyToMany(p) && CodeGenerationHelper.Inverse(p) == null)); }
private bool HasManyToManyAndIsGreaterLexicographicallyThan(EntityType entity, EntityType other) { return(entity.NavigationProperties.Any(p => DependsOn(p, other) && CodeGenerationHelper.IsManyToMany(p) && !CodeGenerationHelper.IsLexicographicallyOrdered(p))); }