DataAnnotationTestBase<TTestStore, TFixture> DataAnnotationTestBase(Of TTestStore, TFixture) Class

Definition

public abstract class DataAnnotationTestBase<TTestStore, TFixture> : IClassFixture<TFixture>, IDisposable where TTestStore : TestStore where TFixture : DataAnnotationFixtureBase<TTestStore>, new ()
Public MustInherit Class DataAnnotationTestBase(Of TTestStore As TestStore, TFixture As {DataAnnotationFixtureBase(Of TTestStore), New})
    Inherits IClassFixture(Of TFixture)
    Implements IDisposable
Type Parameters
TTestStore
TFixture
Inheritance
System.ObjectSystem.Object
DataAnnotationTestBase<TTestStore, TFixture>DataAnnotationTestBase(Of TTestStore, TFixture)
Implements
System.IDisposableSystem.IDisposable

Constructors

DataAnnotationTestBase(TFixture) DataAnnotationTestBase(TFixture)

protected DataAnnotationTestBase(TFixture fixture)
Protected Sub New(fixture As TFixture)
Parameters
fixture
TFixture TFixture

Properties

Fixture Fixture

protected TFixture Fixture { get; }
Protected ReadOnly Property Fixture As TFixture
Value
TFixture TFixture

TestStore TestStore

protected TTestStore TestStore { get; }
Protected ReadOnly Property TestStore As TTestStore
Value
TTestStore TTestStore

Methods

Annotation_in_derived_class_when_base_class_processed_after_derived_class() Annotation_in_derived_class_when_base_class_processed_after_derived_class()

public virtual void Annotation_in_derived_class_when_base_class_processed_after_derived_class()
Public Overridable Sub Annotation_in_derived_class_when_base_class_processed_after_derived_class

ConcurrencyCheckAttribute_throws_if_value_in_database_changed() ConcurrencyCheckAttribute_throws_if_value_in_database_changed()

public virtual void ConcurrencyCheckAttribute_throws_if_value_in_database_changed()
Public Overridable Sub ConcurrencyCheckAttribute_throws_if_value_in_database_changed

CreateContext() CreateContext()

protected DataAnnotationContext CreateContext()
Protected Function CreateContext As DataAnnotationContext
Returns

CreateModelBuilder() CreateModelBuilder()

public virtual ModelBuilder CreateModelBuilder()
Public Overridable Function CreateModelBuilder As ModelBuilder
Returns

DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity() DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity()

public virtual void DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity()
Public Overridable Sub DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity

DatabaseGeneratedOption_configures_the_property_correctly() DatabaseGeneratedOption_configures_the_property_correctly()

public virtual ModelBuilder DatabaseGeneratedOption_configures_the_property_correctly()
Public Overridable Function DatabaseGeneratedOption_configures_the_property_correctly As ModelBuilder
Returns

Default_length_for_key_string_column() Default_length_for_key_string_column()

public virtual ModelBuilder Default_length_for_key_string_column()
Public Overridable Function Default_length_for_key_string_column As ModelBuilder
Returns

Dispose() Dispose()

public virtual void Dispose()
Public Overridable Sub Dispose

Duplicate_column_order_is_ignored() Duplicate_column_order_is_ignored()

public virtual void Duplicate_column_order_is_ignored()
Public Overridable Sub Duplicate_column_order_is_ignored

ExecuteWithStrategyInTransaction(Action) ExecuteWithStrategyInTransaction(Action(Of DataAnnotationContext))

protected virtual void ExecuteWithStrategyInTransaction(Action<DataAnnotationContext> testOperation)
Protected Overridable Sub ExecuteWithStrategyInTransaction(testOperation As Action(Of DataAnnotationContext))
Parameters
testOperation
System.Action<DataAnnotationContext> System.Action(Of DataAnnotationContext)

Explicit_configuration_on_derived_type_or_base_type_is_last_one_wins() Explicit_configuration_on_derived_type_or_base_type_is_last_one_wins()

public virtual void Explicit_configuration_on_derived_type_or_base_type_is_last_one_wins()
Public Overridable Sub Explicit_configuration_on_derived_type_or_base_type_is_last_one_wins

Explicit_configuration_on_derived_type_overrides_annotation_on_mapped_base_type() Explicit_configuration_on_derived_type_overrides_annotation_on_mapped_base_type()

public virtual void Explicit_configuration_on_derived_type_overrides_annotation_on_mapped_base_type()
Public Overridable Sub Explicit_configuration_on_derived_type_overrides_annotation_on_mapped_base_type

Explicit_configuration_on_derived_type_overrides_annotation_on_unmapped_base_type() Explicit_configuration_on_derived_type_overrides_annotation_on_unmapped_base_type()

public virtual void Explicit_configuration_on_derived_type_overrides_annotation_on_unmapped_base_type()
Public Overridable Sub Explicit_configuration_on_derived_type_overrides_annotation_on_unmapped_base_type

Field_annotations_are_enabled() Field_annotations_are_enabled()

public virtual ModelBuilder Field_annotations_are_enabled()
Public Overridable Function Field_annotations_are_enabled As ModelBuilder
Returns

ForeignKey_to_ForeignKey() ForeignKey_to_ForeignKey()

public virtual void ForeignKey_to_ForeignKey()
Public Overridable Sub ForeignKey_to_ForeignKey

ForeignKey_to_ForeignKey_same_name() ForeignKey_to_ForeignKey_same_name()

public virtual void ForeignKey_to_ForeignKey_same_name()
Public Overridable Sub ForeignKey_to_ForeignKey_same_name

ForeignKey_to_ForeignKey_same_name_one_shadow() ForeignKey_to_ForeignKey_same_name_one_shadow()

public virtual void ForeignKey_to_ForeignKey_same_name_one_shadow()
Public Overridable Sub ForeignKey_to_ForeignKey_same_name_one_shadow

ForeignKey_to_nothing() ForeignKey_to_nothing()

public virtual void ForeignKey_to_nothing()
Public Overridable Sub ForeignKey_to_nothing

ForeignKeyAttribute_creates_two_relationships_if_applied_on_navigation_and_property_on_different_side_and_values_do_not_match() ForeignKeyAttribute_creates_two_relationships_if_applied_on_navigation_and_property_on_different_side_and_values_do_not_match()

public virtual void ForeignKeyAttribute_creates_two_relationships_if_applied_on_navigation_and_property_on_different_side_and_values_do_not_match()
Public Overridable Sub ForeignKeyAttribute_creates_two_relationships_if_applied_on_navigation_and_property_on_different_side_and_values_do_not_match

ForeignKeyAttribute_creates_two_relationships_if_applied_on_navigations_on_both_side_and_values_do_not_match() ForeignKeyAttribute_creates_two_relationships_if_applied_on_navigations_on_both_side_and_values_do_not_match()

public virtual void ForeignKeyAttribute_creates_two_relationships_if_applied_on_navigations_on_both_side_and_values_do_not_match()
Public Overridable Sub ForeignKeyAttribute_creates_two_relationships_if_applied_on_navigations_on_both_side_and_values_do_not_match

ForeignKeyAttribute_creates_two_relationships_if_applied_on_property_on_both_side() ForeignKeyAttribute_creates_two_relationships_if_applied_on_property_on_both_side()

public virtual void ForeignKeyAttribute_creates_two_relationships_if_applied_on_property_on_both_side()
Public Overridable Sub ForeignKeyAttribute_creates_two_relationships_if_applied_on_property_on_both_side

ForeignKeyAttribute_throws_if_applied_on_both_navigations_connected_by_inverse_property_but_values_do_not_match() ForeignKeyAttribute_throws_if_applied_on_both_navigations_connected_by_inverse_property_but_values_do_not_match()

public virtual void ForeignKeyAttribute_throws_if_applied_on_both_navigations_connected_by_inverse_property_but_values_do_not_match()
Public Overridable Sub ForeignKeyAttribute_throws_if_applied_on_both_navigations_connected_by_inverse_property_but_values_do_not_match

ForeignKeyAttribute_throws_if_applied_on_property_on_both_side_but_navigations_are_connected_by_inverse_property() ForeignKeyAttribute_throws_if_applied_on_property_on_both_side_but_navigations_are_connected_by_inverse_property()

public virtual void ForeignKeyAttribute_throws_if_applied_on_property_on_both_side_but_navigations_are_connected_by_inverse_property()
Public Overridable Sub ForeignKeyAttribute_throws_if_applied_on_property_on_both_side_but_navigations_are_connected_by_inverse_property

GetProperty(ModelBuilder, String) GetProperty(Of TEntity)(ModelBuilder, String)

protected static IMutableProperty GetProperty<TEntity>(ModelBuilder modelBuilder, string name)
Protected Shared Function GetProperty(Of TEntity)(modelBuilder As ModelBuilder, name As String) As IMutableProperty
Type Parameters
TEntity
Parameters
modelBuilder
ModelBuilder ModelBuilder
name
System.String System.String
Returns

InversePropertyAttribute_from_ignored_base_can_be_ignored_to_remove_ambiguity() InversePropertyAttribute_from_ignored_base_can_be_ignored_to_remove_ambiguity()

public virtual void InversePropertyAttribute_from_ignored_base_can_be_ignored_to_remove_ambiguity()
Public Overridable Sub InversePropertyAttribute_from_ignored_base_can_be_ignored_to_remove_ambiguity

InversePropertyAttribute_from_ignored_base_causes_ambiguity() InversePropertyAttribute_from_ignored_base_causes_ambiguity()

public virtual void InversePropertyAttribute_from_ignored_base_causes_ambiguity()
Public Overridable Sub InversePropertyAttribute_from_ignored_base_causes_ambiguity

InversePropertyAttribute_removes_ambiguity() InversePropertyAttribute_removes_ambiguity()

public virtual void InversePropertyAttribute_removes_ambiguity()
Public Overridable Sub InversePropertyAttribute_removes_ambiguity

InversePropertyAttribute_removes_ambiguity_with_base_type() InversePropertyAttribute_removes_ambiguity_with_base_type()

public virtual void InversePropertyAttribute_removes_ambiguity_with_base_type()
Public Overridable Sub InversePropertyAttribute_removes_ambiguity_with_base_type

InversePropertyAttribute_removes_ambiguity_with_base_type_ignored() InversePropertyAttribute_removes_ambiguity_with_base_type_ignored()

public virtual void InversePropertyAttribute_removes_ambiguity_with_base_type_ignored()
Public Overridable Sub InversePropertyAttribute_removes_ambiguity_with_base_type_ignored

Key_and_column_work_together() Key_and_column_work_together()

public virtual ModelBuilder Key_and_column_work_together()
Public Overridable Function Key_and_column_work_together As ModelBuilder
Returns

Key_and_MaxLength_64_produce_nvarchar_64() Key_and_MaxLength_64_produce_nvarchar_64()

public virtual ModelBuilder Key_and_MaxLength_64_produce_nvarchar_64()
Public Overridable Function Key_and_MaxLength_64_produce_nvarchar_64 As ModelBuilder
Returns

Key_from_base_type_is_recognized() Key_from_base_type_is_recognized()

public virtual void Key_from_base_type_is_recognized()
Public Overridable Sub Key_from_base_type_is_recognized

Key_from_base_type_is_recognized_if_base_discovered_first() Key_from_base_type_is_recognized_if_base_discovered_first()

public virtual void Key_from_base_type_is_recognized_if_base_discovered_first()
Public Overridable Sub Key_from_base_type_is_recognized_if_base_discovered_first

Key_from_base_type_is_recognized_if_discovered_through_relationship() Key_from_base_type_is_recognized_if_discovered_through_relationship()

public virtual void Key_from_base_type_is_recognized_if_discovered_through_relationship()
Public Overridable Sub Key_from_base_type_is_recognized_if_discovered_through_relationship

Key_on_nav_prop_is_ignored() Key_on_nav_prop_is_ignored()

public virtual void Key_on_nav_prop_is_ignored()
Public Overridable Sub Key_on_nav_prop_is_ignored

Key_property_is_not_used_for_FK_when_set_by_annotation() Key_property_is_not_used_for_FK_when_set_by_annotation()

public virtual ModelBuilder Key_property_is_not_used_for_FK_when_set_by_annotation()
Public Overridable Function Key_property_is_not_used_for_FK_when_set_by_annotation As ModelBuilder
Returns

MaxLength_with_length_takes_precedence_over_StringLength() MaxLength_with_length_takes_precedence_over_StringLength()

public virtual void MaxLength_with_length_takes_precedence_over_StringLength()
Public Overridable Sub MaxLength_with_length_takes_precedence_over_StringLength

MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length() MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length()

public virtual void MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length()
Public Overridable Sub MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length

Non_public_annotations_are_enabled() Non_public_annotations_are_enabled()

public virtual ModelBuilder Non_public_annotations_are_enabled()
Public Overridable Function Non_public_annotations_are_enabled As ModelBuilder
Returns

Nothing_to_ForeignKey() Nothing_to_ForeignKey()

public virtual void Nothing_to_ForeignKey()
Public Overridable Sub Nothing_to_ForeignKey

Nothing_to_Required_and_ForeignKey() Nothing_to_Required_and_ForeignKey()

public virtual void Nothing_to_Required_and_ForeignKey()
Public Overridable Sub Nothing_to_Required_and_ForeignKey

NotMapped_on_abstract_base_class_property_ignores_it() NotMapped_on_abstract_base_class_property_ignores_it()

public virtual void NotMapped_on_abstract_base_class_property_ignores_it()
Public Overridable Sub NotMapped_on_abstract_base_class_property_ignores_it

NotMapped_on_base_class_property_and_overriden_property_ignores_them() NotMapped_on_base_class_property_and_overriden_property_ignores_them()

public virtual void NotMapped_on_base_class_property_and_overriden_property_ignores_them()
Public Overridable Sub NotMapped_on_base_class_property_and_overriden_property_ignores_them

NotMapped_on_base_class_property_discovered_through_navigation_ignores_it() NotMapped_on_base_class_property_discovered_through_navigation_ignores_it()

public virtual void NotMapped_on_base_class_property_discovered_through_navigation_ignores_it()
Public Overridable Sub NotMapped_on_base_class_property_discovered_through_navigation_ignores_it

NotMapped_on_base_class_property_ignores_it() NotMapped_on_base_class_property_ignores_it()

public virtual void NotMapped_on_base_class_property_ignores_it()
Public Overridable Sub NotMapped_on_base_class_property_ignores_it

NotMapped_on_new_property_with_same_name_as_in_unmapped_base_class_ignores_it() NotMapped_on_new_property_with_same_name_as_in_unmapped_base_class_ignores_it()

public virtual void NotMapped_on_new_property_with_same_name_as_in_unmapped_base_class_ignores_it()
Public Overridable Sub NotMapped_on_new_property_with_same_name_as_in_unmapped_base_class_ignores_it

NotMapped_on_overriden_mapped_base_class_property_throws() NotMapped_on_overriden_mapped_base_class_property_throws()

public virtual void NotMapped_on_overriden_mapped_base_class_property_throws()
Public Overridable Sub NotMapped_on_overriden_mapped_base_class_property_throws

NotMapped_on_unmapped_base_class_property_and_overriden_property_ignores_it() NotMapped_on_unmapped_base_class_property_and_overriden_property_ignores_it()

public virtual void NotMapped_on_unmapped_base_class_property_and_overriden_property_ignores_it()
Public Overridable Sub NotMapped_on_unmapped_base_class_property_and_overriden_property_ignores_it

NotMapped_on_unmapped_base_class_property_ignores_it() NotMapped_on_unmapped_base_class_property_ignores_it()

public virtual void NotMapped_on_unmapped_base_class_property_ignores_it()
Public Overridable Sub NotMapped_on_unmapped_base_class_property_ignores_it

NotMapped_on_unmapped_derived_property_ignores_it() NotMapped_on_unmapped_derived_property_ignores_it()

public virtual void NotMapped_on_unmapped_derived_property_ignores_it()
Public Overridable Sub NotMapped_on_unmapped_derived_property_ignores_it

NotMapped_should_propagate_down_inheritance_hierarchy() NotMapped_should_propagate_down_inheritance_hierarchy()

public virtual void NotMapped_should_propagate_down_inheritance_hierarchy()
Public Overridable Sub NotMapped_should_propagate_down_inheritance_hierarchy

NotMappedAttribute_ignores_entityType() NotMappedAttribute_ignores_entityType()

public virtual void NotMappedAttribute_ignores_entityType()
Public Overridable Sub NotMappedAttribute_ignores_entityType

NotMappedAttribute_ignores_explicit_interface_implementation_property() NotMappedAttribute_ignores_explicit_interface_implementation_property()

public virtual void NotMappedAttribute_ignores_explicit_interface_implementation_property()
Public Overridable Sub NotMappedAttribute_ignores_explicit_interface_implementation_property

NotMappedAttribute_ignores_navigation() NotMappedAttribute_ignores_navigation()

public virtual void NotMappedAttribute_ignores_navigation()
Public Overridable Sub NotMappedAttribute_ignores_navigation

NotMappedAttribute_ignores_property() NotMappedAttribute_ignores_property()

public virtual void NotMappedAttribute_ignores_property()
Public Overridable Sub NotMappedAttribute_ignores_property

NotMappedAttribute_removes_ambiguity_in_relationship_building() NotMappedAttribute_removes_ambiguity_in_relationship_building()

public virtual void NotMappedAttribute_removes_ambiguity_in_relationship_building()
Public Overridable Sub NotMappedAttribute_removes_ambiguity_in_relationship_building

NotMappedAttribute_removes_ambiguity_in_relationship_building_with_base() NotMappedAttribute_removes_ambiguity_in_relationship_building_with_base()

public virtual void NotMappedAttribute_removes_ambiguity_in_relationship_building_with_base()
Public Overridable Sub NotMappedAttribute_removes_ambiguity_in_relationship_building_with_base

Required_and_ForeignKey_to_nothing() Required_and_ForeignKey_to_nothing()

public virtual void Required_and_ForeignKey_to_nothing()
Public Overridable Sub Required_and_ForeignKey_to_nothing

Required_and_ForeignKey_to_Required() Required_and_ForeignKey_to_Required()

public virtual void Required_and_ForeignKey_to_Required()
Public Overridable Sub Required_and_ForeignKey_to_Required

Required_and_ForeignKey_to_Required_and_ForeignKey() Required_and_ForeignKey_to_Required_and_ForeignKey()

public virtual void Required_and_ForeignKey_to_Required_and_ForeignKey()
Public Overridable Sub Required_and_ForeignKey_to_Required_and_ForeignKey

Required_and_ForeignKey_to_Required_and_ForeignKey_can_be_overriden() Required_and_ForeignKey_to_Required_and_ForeignKey_can_be_overriden()

public virtual void Required_and_ForeignKey_to_Required_and_ForeignKey_can_be_overriden()
Public Overridable Sub Required_and_ForeignKey_to_Required_and_ForeignKey_can_be_overriden

Required_to_Required_and_ForeignKey() Required_to_Required_and_ForeignKey()

public virtual void Required_to_Required_and_ForeignKey()
Public Overridable Sub Required_to_Required_and_ForeignKey

RequiredAttribute_does_nothing_when_specified_on_nav_to_dependent_per_convention() RequiredAttribute_does_nothing_when_specified_on_nav_to_dependent_per_convention()

public virtual void RequiredAttribute_does_nothing_when_specified_on_nav_to_dependent_per_convention()
Public Overridable Sub RequiredAttribute_does_nothing_when_specified_on_nav_to_dependent_per_convention

RequiredAttribute_for_navigation_throws_while_inserting_null_value() RequiredAttribute_for_navigation_throws_while_inserting_null_value()

public virtual void RequiredAttribute_for_navigation_throws_while_inserting_null_value()
Public Overridable Sub RequiredAttribute_for_navigation_throws_while_inserting_null_value

RequiredAttribute_for_property_throws_while_inserting_null_value() RequiredAttribute_for_property_throws_while_inserting_null_value()

public virtual void RequiredAttribute_for_property_throws_while_inserting_null_value()
Public Overridable Sub RequiredAttribute_for_property_throws_while_inserting_null_value

Shared_ForeignKey_to_different_principals() Shared_ForeignKey_to_different_principals()

public virtual void Shared_ForeignKey_to_different_principals()
Public Overridable Sub Shared_ForeignKey_to_different_principals

StringLength_with_value_takes_presedence_over_MaxLength() StringLength_with_value_takes_presedence_over_MaxLength()

public virtual void StringLength_with_value_takes_presedence_over_MaxLength()
Public Overridable Sub StringLength_with_value_takes_presedence_over_MaxLength

StringLengthAttribute_throws_while_inserting_value_longer_than_max_length() StringLengthAttribute_throws_while_inserting_value_longer_than_max_length()

public virtual void StringLengthAttribute_throws_while_inserting_value_longer_than_max_length()
Public Overridable Sub StringLengthAttribute_throws_while_inserting_value_longer_than_max_length

TableNameAttribute_affects_table_name_in_TPH() TableNameAttribute_affects_table_name_in_TPH()

public virtual ModelBuilder TableNameAttribute_affects_table_name_in_TPH()
Public Overridable Function TableNameAttribute_affects_table_name_in_TPH As ModelBuilder
Returns

Timestamp_takes_precedence_over_MaxLength() Timestamp_takes_precedence_over_MaxLength()

public virtual ModelBuilder Timestamp_takes_precedence_over_MaxLength()
Public Overridable Function Timestamp_takes_precedence_over_MaxLength As ModelBuilder
Returns

Timestamp_takes_precedence_over_MaxLength_with_value() Timestamp_takes_precedence_over_MaxLength_with_value()

public virtual ModelBuilder Timestamp_takes_precedence_over_MaxLength_with_value()
Public Overridable Function Timestamp_takes_precedence_over_MaxLength_with_value As ModelBuilder
Returns

TimestampAttribute_throws_if_value_in_database_changed() TimestampAttribute_throws_if_value_in_database_changed()

public virtual void TimestampAttribute_throws_if_value_in_database_changed()
Public Overridable Sub TimestampAttribute_throws_if_value_in_database_changed

UseTransaction(DatabaseFacade, IDbContextTransaction) UseTransaction(DatabaseFacade, IDbContextTransaction)

protected virtual void UseTransaction(DatabaseFacade facade, IDbContextTransaction transaction)
Protected Overridable Sub UseTransaction(facade As DatabaseFacade, transaction As IDbContextTransaction)
Parameters

Validate(ModelBuilder) Validate(ModelBuilder)

protected virtual void Validate(ModelBuilder modelBuilder)
Protected Overridable Sub Validate(modelBuilder As ModelBuilder)
Parameters
modelBuilder
ModelBuilder ModelBuilder