ModelBuilderNonGenericStringTest.NonGenericStringOneToOneType ModelBuilderNonGenericStringTest.NonGenericStringOneToOneType Class

Definition

public class NonGenericStringOneToOneType : ModelBuilderTest.OneToOneTestBase
Public Class NonGenericStringOneToOneType
    Inherits ModelBuilderTest.OneToOneTestBase
Inheritance
System.ObjectSystem.Object
ModelBuilderNonGenericStringTest.NonGenericStringOneToOneTypeModelBuilderNonGenericStringTest.NonGenericStringOneToOneType

Methods

AssertEqual(IEnumerable, IEnumerable, ForeignKeyStrictComparer) AssertEqual(IEnumerable(Of IForeignKey), IEnumerable(Of IForeignKey), ForeignKeyStrictComparer)

AssertEqual(IEnumerable, IEnumerable, IndexComparer) AssertEqual(IEnumerable(Of IIndex), IEnumerable(Of IIndex), IndexComparer)

AssertEqual(IEnumerable, IEnumerable, KeyComparer) AssertEqual(IEnumerable(Of IKey), IEnumerable(Of IKey), KeyComparer)

AssertEqual(IEnumerable, IEnumerable, NavigationComparer) AssertEqual(IEnumerable(Of INavigation), IEnumerable(Of INavigation), NavigationComparer)

AssertEqual(IEnumerable, IEnumerable, PropertyComparer) AssertEqual(IEnumerable(Of IProperty), IEnumerable(Of IProperty), PropertyComparer)

AssertEqual(IEnumerable, IEnumerable, StringComparer) AssertEqual(IEnumerable(Of String), IEnumerable(Of String), StringComparer)

Cannot_create_navigation_on_non_shadow_entity_targeting_shadow_entity() Cannot_create_navigation_on_non_shadow_entity_targeting_shadow_entity()

public virtual void Cannot_create_navigation_on_non_shadow_entity_targeting_shadow_entity()
Public Overridable Sub Cannot_create_navigation_on_non_shadow_entity_targeting_shadow_entity

Cannot_create_shadow_navigation_between_non_shadow_entity_types() Cannot_create_shadow_navigation_between_non_shadow_entity_types()

public virtual void Cannot_create_shadow_navigation_between_non_shadow_entity_types()
Public Overridable Sub Cannot_create_shadow_navigation_between_non_shadow_entity_types

Can_add_annotations() Can_add_annotations()

Can_be_defined_before_the_PK_from_dependent() Can_be_defined_before_the_PK_from_dependent()

Can_be_defined_before_the_PK_from_principal() Can_be_defined_before_the_PK_from_principal()

Can_change_delete_behavior() Can_change_delete_behavior()

Can_create_one_to_one_relationship_if_dependent_has_matching_property_with_entity_type_name() Can_create_one_to_one_relationship_if_dependent_has_matching_property_with_entity_type_name()

Can_create_one_to_one_relationship_if_dependent_has_matching_property_with_navigation_name() Can_create_one_to_one_relationship_if_dependent_has_matching_property_with_navigation_name()

Can_create_one_to_one_relationship_if_foreign_key_attribute_is_used() Can_create_one_to_one_relationship_if_foreign_key_attribute_is_used()

Can_create_one_to_one_relationship_if_user_specifies_principal_key_property() Can_create_one_to_one_relationship_if_user_specifies_principal_key_property()

Can_create_one_to_one_relationship_if_user_specify_foreign_key_property() Can_create_one_to_one_relationship_if_user_specify_foreign_key_property()

Can_create_one_to_one_self_referencing_relationship_without_navigations() Can_create_one_to_one_self_referencing_relationship_without_navigations()

Can_create_shadow_navigations_between_shadow_entity_types() Can_create_shadow_navigations_between_shadow_entity_types()

public virtual void Can_create_shadow_navigations_between_shadow_entity_types()
Public Overridable Sub Can_create_shadow_navigations_between_shadow_entity_types

Can_create_two_FKs_using_the_same_property() Can_create_two_FKs_using_the_same_property()

Can_have_both_alternate_keys_specified_explicitly() Can_have_both_alternate_keys_specified_explicitly()

Can_have_both_alternate_keys_specified_explicitly_in_any_order() Can_have_both_alternate_keys_specified_explicitly_in_any_order()

Can_have_both_keys_specified_explicitly() Can_have_both_keys_specified_explicitly()

Can_have_both_keys_specified_explicitly_in_any_order() Can_have_both_keys_specified_explicitly_in_any_order()

Can_invert_one_to_one_relationship_if_principal_has_matching_property_with_entity_type_name() Can_invert_one_to_one_relationship_if_principal_has_matching_property_with_entity_type_name()

Can_invert_one_to_one_relationship_if_principal_has_matching_property_with_navigation_name() Can_invert_one_to_one_relationship_if_principal_has_matching_property_with_navigation_name()

Can_use_alternate_composite_key() Can_use_alternate_composite_key()

Can_use_alternate_composite_key_in_any_order() Can_use_alternate_composite_key_in_any_order()

Can_use_alternate_principal_key() Can_use_alternate_principal_key()

Can_use_pk_as_fk_if_principal_end_is_specified() Can_use_pk_as_fk_if_principal_end_is_specified()

Can_use_PK_FK() Can_use_PK_FK()

Can_use_self_referencing_overlapping_FK_PK() Can_use_self_referencing_overlapping_FK_PK()

Configuring_FK_properties_as_PK_sets_DeleteBehavior_Cascade() Configuring_FK_properties_as_PK_sets_DeleteBehavior_Cascade()

CreateModelBuilder() CreateModelBuilder()

Creates_both_navigations_and_creates_composite_FK_specified() Creates_both_navigations_and_creates_composite_FK_specified()

Creates_both_navigations_and_creates_new_FK_when_not_specified() Creates_both_navigations_and_creates_new_FK_when_not_specified()

Creates_both_navigations_and_new_FK() Creates_both_navigations_and_new_FK()

Creates_both_navigations_and_overrides_existing_FK_when_uniqueness_does_not_match() Creates_both_navigations_and_overrides_existing_FK_when_uniqueness_does_not_match()

Creates_both_navigations_and_removes_existing_FK_when_not_specified() Creates_both_navigations_and_removes_existing_FK_when_not_specified()

Creates_both_navigations_and_shadow_FK_if_existing_FK() Creates_both_navigations_and_shadow_FK_if_existing_FK()

Creates_both_navigations_and_specified_FK() Creates_both_navigations_and_specified_FK()

Creates_both_navigations_and_uses_existing_composite_FK() Creates_both_navigations_and_uses_existing_composite_FK()

Creates_both_navigations_and_uses_existing_FK_not_found_by_convention() Creates_both_navigations_and_uses_existing_FK_not_found_by_convention()

Creates_both_navigations_and_uses_specified_FK_even_if_found_by_convention() Creates_both_navigations_and_uses_specified_FK_even_if_found_by_convention()

Creates_both_navigations_and_uses_specified_FK_even_if_PK() Creates_both_navigations_and_uses_specified_FK_even_if_PK()

Creates_composite_FK_when_specified_on_principal_with_navigation_to_dependent() Creates_composite_FK_when_specified_on_principal_with_navigation_to_dependent()

Creates_composite_FK_when_specified_on_principal_with_navigation_to_principal() Creates_composite_FK_when_specified_on_principal_with_navigation_to_principal()

Creates_composite_FK_when_specified_on_principal_with_no_navigations() Creates_composite_FK_when_specified_on_principal_with_no_navigations()

Creates_FK_when_principal_and_foreign_key_specified_on_dependent() Creates_FK_when_principal_and_foreign_key_specified_on_dependent()

Creates_FK_when_principal_and_foreign_key_specified_on_dependent_in_reverse_order() Creates_FK_when_principal_and_foreign_key_specified_on_dependent_in_reverse_order()

Creates_FK_when_principal_and_foreign_key_specified_on_principal() Creates_FK_when_principal_and_foreign_key_specified_on_principal()

Creates_FK_when_specified_on_dependent() Creates_FK_when_specified_on_dependent()

Creates_FK_when_specified_on_dependent_with_navigation_to_dependent() Creates_FK_when_specified_on_dependent_with_navigation_to_dependent()

Creates_FK_when_specified_on_dependent_with_navigation_to_principal() Creates_FK_when_specified_on_dependent_with_navigation_to_principal()

Creates_FK_when_specified_on_dependent_with_no_navigations() Creates_FK_when_specified_on_dependent_with_no_navigations()

Creates_FK_when_specified_on_principal() Creates_FK_when_specified_on_principal()

Creates_FK_when_specified_on_principal_with_navigation_to_dependent() Creates_FK_when_specified_on_principal_with_navigation_to_dependent()

Creates_FK_when_specified_on_principal_with_navigation_to_principal() Creates_FK_when_specified_on_principal_with_navigation_to_principal()

Creates_FK_when_specified_on_principal_with_no_navigations() Creates_FK_when_specified_on_principal_with_no_navigations()

Creates_one_to_one_relationship_with_single_ref_as_principal_to_dependent_if_matching_properties_are_on_the_other_side() Creates_one_to_one_relationship_with_single_ref_as_principal_to_dependent_if_matching_properties_are_on_the_other_side()

Creates_principal_key_when_specified_on_dependent() Creates_principal_key_when_specified_on_dependent()

Creates_principal_key_when_specified_on_dependent_with_navigation_to_dependent() Creates_principal_key_when_specified_on_dependent_with_navigation_to_dependent()

Creates_principal_key_when_specified_on_dependent_with_navigation_to_principal() Creates_principal_key_when_specified_on_dependent_with_navigation_to_principal()

Creates_principal_key_when_specified_on_dependent_with_no_navigations() Creates_principal_key_when_specified_on_dependent_with_no_navigations()

Creates_principal_key_when_specified_on_principal() Creates_principal_key_when_specified_on_principal()

Creates_principal_key_when_specified_on_principal_with_navigation_to_dependent() Creates_principal_key_when_specified_on_principal_with_navigation_to_dependent()

Creates_principal_key_when_specified_on_principal_with_navigation_to_principal() Creates_principal_key_when_specified_on_principal_with_navigation_to_principal()

Creates_principal_key_when_specified_on_principal_with_no_navigations() Creates_principal_key_when_specified_on_principal_with_no_navigations()

Creates_relationship_on_existing_FK_if_using_different_principal_key() Creates_relationship_on_existing_FK_if_using_different_principal_key()

Creates_relationship_on_existing_FK_if_using_different_principal_key_different_order() Creates_relationship_on_existing_FK_if_using_different_principal_key_different_order()

Creates_relationship_with_navigation_to_dependent_and_new_FK_from_dependent() Creates_relationship_with_navigation_to_dependent_and_new_FK_from_dependent()

Creates_relationship_with_navigation_to_dependent_and_new_FK_from_principal() Creates_relationship_with_navigation_to_dependent_and_new_FK_from_principal()

Creates_relationship_with_no_navigations() Creates_relationship_with_no_navigations()

Creates_relationship_with_specified_FK_with_navigation_to_dependent() Creates_relationship_with_specified_FK_with_navigation_to_dependent()

Creates_relationship_with_specified_FK_with_navigation_to_principal() Creates_relationship_with_specified_FK_with_navigation_to_principal()

Creates_relationship_with_specified_FK_with_no_navigations() Creates_relationship_with_specified_FK_with_no_navigations()

Creates_self_referencing_FK_with_navigation_to_dependent() Creates_self_referencing_FK_with_navigation_to_dependent()

Creates_self_referencing_FK_with_navigation_to_principal() Creates_self_referencing_FK_with_navigation_to_principal()

Creates_shadow_FK_property_with_non_shadow_PK() Creates_shadow_FK_property_with_non_shadow_PK()

Creates_shadow_FK_property_with_shadow_PK() Creates_shadow_FK_property_with_shadow_PK()

CreateTestModelBuilder(ModelBuilder) CreateTestModelBuilder(ModelBuilder)

protected override ModelBuilderTest.TestModelBuilder CreateTestModelBuilder(ModelBuilder modelBuilder)
Protected Overrides Function CreateTestModelBuilder(modelBuilder As ModelBuilder) As ModelBuilderTest.TestModelBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder
Returns
Overrides

Does_not_create_index_if_covered_by_an_alternate_key() Does_not_create_index_if_covered_by_an_alternate_key()

Does_not_use_existing_FK_when_principal_key_specified() Does_not_use_existing_FK_when_principal_key_specified()

Does_not_use_pk_as_fk_if_principal_end_is_not_specified() Does_not_use_pk_as_fk_if_principal_end_is_not_specified()

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

Finds_existing_navigations_and_uses_associated_FK() Finds_existing_navigations_and_uses_associated_FK()

Finds_existing_navigation_to_dependent_and_uses_associated_FK() Finds_existing_navigation_to_dependent_and_uses_associated_FK()

Foreign_key_properties_are_not_discovered_for_one_to_one_relationship_with_ambiguous_principal_end() Foreign_key_properties_are_not_discovered_for_one_to_one_relationship_with_ambiguous_principal_end()

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

Handles_identity_correctly_while_removing_navigation() Handles_identity_correctly_while_removing_navigation()

HobNobBuilder() HobNobBuilder()

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

Non_nullable_FK_are_required_by_default() Non_nullable_FK_are_required_by_default()

Non_nullable_FK_cannot_be_made_optional() Non_nullable_FK_cannot_be_made_optional()

Non_nullable_FK_can_be_made_optional_separetely() Non_nullable_FK_can_be_made_optional_separetely()

Nullable_FK_are_optional_by_default() Nullable_FK_are_optional_by_default()

Nullable_FK_can_be_made_required() Nullable_FK_can_be_made_required()

OneToOne_can_have_PK_explicitly_specified() OneToOne_can_have_PK_explicitly_specified()

Optional_FK_cannot_be_made_non_nullable() Optional_FK_cannot_be_made_non_nullable()

Optional_FK_can_be_made_non_nullable_separetely() Optional_FK_can_be_made_non_nullable_separetely()

Overrides_FK_if_specified_PK_count_does_not_match_separetely() Overrides_FK_if_specified_PK_count_does_not_match_separetely()

Overrides_FK_if_specified_PK_types_do_not_match_separetely() Overrides_FK_if_specified_PK_types_do_not_match_separetely()

Overrides_PK_if_specified_FK_count_does_not_match_separetely() Overrides_PK_if_specified_FK_count_does_not_match_separetely()

Overrides_PK_if_specified_FK_types_do_not_match_separetely() Overrides_PK_if_specified_FK_types_do_not_match_separetely()

Principal_and_dependent_cannot_be_flipped_twice() Principal_and_dependent_cannot_be_flipped_twice()

Principal_and_dependent_cannot_be_flipped_twice_in_reverse_order() Principal_and_dependent_cannot_be_flipped_twice_in_reverse_order()

Principal_and_dependent_can_be_flipped_and_composite_PK_is_still_used_by_convention() Principal_and_dependent_can_be_flipped_and_composite_PK_is_still_used_by_convention()

Principal_and_dependent_can_be_flipped_twice_in_reverse_order_separetely() Principal_and_dependent_can_be_flipped_twice_in_reverse_order_separetely()

Principal_and_dependent_can_be_flipped_twice_separetely() Principal_and_dependent_can_be_flipped_twice_separetely()

Principal_and_dependent_can_be_flipped_using_principal_and_composite_PK_is_still_used_by_convention() Principal_and_dependent_can_be_flipped_using_principal_and_composite_PK_is_still_used_by_convention()

Principal_and_dependent_can_be_flipped_when_self_referencing() Principal_and_dependent_can_be_flipped_when_self_referencing()

Principal_and_dependent_can_be_flipped_when_self_referencing_with_navigation_to_dependent() Principal_and_dependent_can_be_flipped_when_self_referencing_with_navigation_to_dependent()

Principal_and_dependent_can_be_flipped_when_self_referencing_with_navigation_to_principal() Principal_and_dependent_can_be_flipped_when_self_referencing_with_navigation_to_principal()

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

Removes_existing_FK_when_specified() Removes_existing_FK_when_specified()

Removes_existing_unidirectional_many_to_one_relationship() Removes_existing_unidirectional_many_to_one_relationship()

Removes_existing_unidirectional_one_to_many_relationship() Removes_existing_unidirectional_one_to_many_relationship()

Replaces_existing_navigation_to_principal() Replaces_existing_navigation_to_principal()

Throws_for_one_to_one_relationship_if_both_sides_have_matching_property_mixed() Throws_for_one_to_one_relationship_if_both_sides_have_matching_property_mixed()

Throws_for_one_to_one_relationship_if_both_sides_have_matching_property_with_entity_type_name() Throws_for_one_to_one_relationship_if_both_sides_have_matching_property_with_entity_type_name()

Throws_for_one_to_one_relationship_if_both_sides_have_matching_property_with_navigation_name() Throws_for_one_to_one_relationship_if_both_sides_have_matching_property_with_navigation_name()

Throws_for_one_to_one_relationship_if_no_side_has_matching_property() Throws_for_one_to_one_relationship_if_no_side_has_matching_property()

Throws_if_multiple_navigations_are_pointing_to_same_foreign_key_property() Throws_if_multiple_navigations_are_pointing_to_same_foreign_key_property()

Throws_if_not_principal_or_dependent_specified() Throws_if_not_principal_or_dependent_specified()

Throws_if_specified_FK_count_does_not_match() Throws_if_specified_FK_count_does_not_match()

Throws_if_specified_FK_types_do_not_match() Throws_if_specified_FK_types_do_not_match()

Throws_if_specified_PK_count_does_not_match() Throws_if_specified_PK_count_does_not_match()

Throws_if_specified_PK_types_do_not_match() Throws_if_specified_PK_types_do_not_match()

Throws_on_duplicate_navigation_when_self_referencing() Throws_on_duplicate_navigation_when_self_referencing()

Throws_on_existing_many_to_one_relationship() Throws_on_existing_many_to_one_relationship()

Throws_on_existing_one_to_many_relationship() Throws_on_existing_one_to_many_relationship()

ToString() ToString()

Inherited from System.Object

Unspecified_FK_can_be_made_optional() Unspecified_FK_can_be_made_optional()

Unspecified_FK_can_be_made_optional_in_any_order() Unspecified_FK_can_be_made_optional_in_any_order()

Unspecified_FK_can_be_made_required() Unspecified_FK_can_be_made_required()

Uses_composite_PK_for_FK_by_convention() Uses_composite_PK_for_FK_by_convention()