DataAnnotationSqlServerTest DataAnnotationSqlServerTest Class

Syntax

Declaration

public class DataAnnotationSqlServerTest : DataAnnotationTestBase<SqlServerTestStore, DataAnnotationSqlServerFixture>, IDisposablePublic Class DataAnnotationSqlServerTest
    Inherits DataAnnotationTestBase(Of SqlServerTestStore, DataAnnotationSqlServerFixture)
    Implements IDisposable

Inheritance Hierarchy

Inherited Members

CreateContext(),
CreateContext(),
ExecuteWithStrategyInTransaction(Action<DataAnnotationContext>),
ExecuteWithStrategyInTransaction(Action(Of DataAnnotationContext)),
UseTransaction(DatabaseFacade, IDbContextTransaction),
UseTransaction(DatabaseFacade, IDbContextTransaction),
Fixture,
Fixture,
TestStore,
TestStore,
Dispose(),
Dispose(),
CreateModelBuilder(),
CreateModelBuilder(),
Validate(ModelBuilder),
Validate(ModelBuilder),
Explicit_configuration_on_derived_type_overrides_annotation_on_unmapped_base_type(),
Explicit_configuration_on_derived_type_overrides_annotation_on_unmapped_base_type(),
Explicit_configuration_on_derived_type_overrides_annotation_on_mapped_base_type(),
Explicit_configuration_on_derived_type_overrides_annotation_on_mapped_base_type(),
Explicit_configuration_on_derived_type_or_base_type_is_last_one_wins(),
Explicit_configuration_on_derived_type_or_base_type_is_last_one_wins(),
GetProperty<TEntity>(ModelBuilder, String),
GetProperty(Of TEntity)(ModelBuilder, String),
Duplicate_column_order_is_ignored(),
Duplicate_column_order_is_ignored(),
Non_public_annotations_are_enabled(),
Non_public_annotations_are_enabled(),
Field_annotations_are_enabled(),
Field_annotations_are_enabled(),
NotMapped_should_propagate_down_inheritance_hierarchy(),
NotMapped_should_propagate_down_inheritance_hierarchy(),
NotMapped_on_base_class_property_ignores_it(),
NotMapped_on_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(),
NotMapped_on_base_class_property_discovered_through_navigation_ignores_it(),
NotMapped_on_base_class_property_discovered_through_navigation_ignores_it(),
NotMapped_on_overriden_mapped_base_class_property_throws(),
NotMapped_on_overriden_mapped_base_class_property_throws(),
NotMapped_on_unmapped_derived_property_ignores_it(),
NotMapped_on_unmapped_derived_property_ignores_it(),
NotMapped_on_abstract_base_class_property_ignores_it(),
NotMapped_on_abstract_base_class_property_ignores_it(),
NotMapped_on_unmapped_base_class_property_and_overriden_property_ignores_it(),
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(),
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(),
StringLength_with_value_takes_presedence_over_MaxLength(),
StringLength_with_value_takes_presedence_over_MaxLength(),
MaxLength_with_length_takes_precedence_over_StringLength(),
MaxLength_with_length_takes_precedence_over_StringLength(),
Default_length_for_key_string_column(),
Default_length_for_key_string_column(),
Key_and_column_work_together(),
Key_and_column_work_together(),
Key_and_MaxLength_64_produce_nvarchar_64(),
Key_and_MaxLength_64_produce_nvarchar_64(),
Key_from_base_type_is_recognized(),
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(),
Key_from_base_type_is_recognized_if_discovered_through_relationship(),
Key_from_base_type_is_recognized_if_discovered_through_relationship(),
Key_on_nav_prop_is_ignored(),
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(),
DatabaseGeneratedOption_configures_the_property_correctly(),
DatabaseGeneratedOption_configures_the_property_correctly(),
Timestamp_takes_precedence_over_MaxLength(),
Timestamp_takes_precedence_over_MaxLength(),
Timestamp_takes_precedence_over_MaxLength_with_value(),
Timestamp_takes_precedence_over_MaxLength_with_value(),
Annotation_in_derived_class_when_base_class_processed_after_derived_class(),
Annotation_in_derived_class_when_base_class_processed_after_derived_class(),
Required_and_ForeignKey_to_Required(),
Required_and_ForeignKey_to_Required(),
Required_to_Required_and_ForeignKey(),
Required_to_Required_and_ForeignKey(),
Required_and_ForeignKey_to_Required_and_ForeignKey(),
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(),
ForeignKey_to_nothing(),
ForeignKey_to_nothing(),
Required_and_ForeignKey_to_nothing(),
Required_and_ForeignKey_to_nothing(),
Nothing_to_ForeignKey(),
Nothing_to_ForeignKey(),
Nothing_to_Required_and_ForeignKey(),
Nothing_to_Required_and_ForeignKey(),
ForeignKey_to_ForeignKey(),
ForeignKey_to_ForeignKey(),
ForeignKey_to_ForeignKey_same_name(),
ForeignKey_to_ForeignKey_same_name(),
ForeignKey_to_ForeignKey_same_name_one_shadow(),
ForeignKey_to_ForeignKey_same_name_one_shadow(),
Shared_ForeignKey_to_different_principals(),
Shared_ForeignKey_to_different_principals(),
TableNameAttribute_affects_table_name_in_TPH(),
TableNameAttribute_affects_table_name_in_TPH(),
ConcurrencyCheckAttribute_throws_if_value_in_database_changed(),
ConcurrencyCheckAttribute_throws_if_value_in_database_changed(),
DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity(),
DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity(),
MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length(),
MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length(),
NotMappedAttribute_ignores_entityType(),
NotMappedAttribute_ignores_entityType(),
NotMappedAttribute_ignores_navigation(),
NotMappedAttribute_ignores_navigation(),
NotMappedAttribute_ignores_property(),
NotMappedAttribute_ignores_property(),
NotMappedAttribute_ignores_explicit_interface_implementation_property(),
NotMappedAttribute_ignores_explicit_interface_implementation_property(),
NotMappedAttribute_removes_ambiguity_in_relationship_building(),
NotMappedAttribute_removes_ambiguity_in_relationship_building(),
NotMappedAttribute_removes_ambiguity_in_relationship_building_with_base(),
NotMappedAttribute_removes_ambiguity_in_relationship_building_with_base(),
InversePropertyAttribute_removes_ambiguity(),
InversePropertyAttribute_removes_ambiguity(),
InversePropertyAttribute_removes_ambiguity_with_base_type(),
InversePropertyAttribute_removes_ambiguity_with_base_type(),
InversePropertyAttribute_removes_ambiguity_with_base_type_ignored(),
InversePropertyAttribute_removes_ambiguity_with_base_type_ignored(),
InversePropertyAttribute_from_ignored_base_causes_ambiguity(),
InversePropertyAttribute_from_ignored_base_causes_ambiguity(),
InversePropertyAttribute_from_ignored_base_can_be_ignored_to_remove_ambiguity(),
InversePropertyAttribute_from_ignored_base_can_be_ignored_to_remove_ambiguity(),
ForeignKeyAttribute_creates_two_relationships_if_applied_on_property_on_both_side(),
ForeignKeyAttribute_creates_two_relationships_if_applied_on_property_on_both_side(),
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(),
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(),
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(),
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(),
RequiredAttribute_for_navigation_throws_while_inserting_null_value(),
RequiredAttribute_for_navigation_throws_while_inserting_null_value(),
RequiredAttribute_does_nothing_when_specified_on_nav_to_dependent_per_convention(),
RequiredAttribute_does_nothing_when_specified_on_nav_to_dependent_per_convention(),
RequiredAttribute_for_property_throws_while_inserting_null_value(),
RequiredAttribute_for_property_throws_while_inserting_null_value(),
StringLengthAttribute_throws_while_inserting_value_longer_than_max_length(),
StringLengthAttribute_throws_while_inserting_value_longer_than_max_length(),
TimestampAttribute_throws_if_value_in_database_changed()
TimestampAttribute_throws_if_value_in_database_changed()

Constructors summary

Methods summary

Constructors

  • DataAnnotationSqlServerTest(DataAnnotationSqlServerFixture)
    DataAnnotationSqlServerTest(DataAnnotationSqlServerFixture)
    public DataAnnotationSqlServerTest(DataAnnotationSqlServerFixture fixture)Public Sub New(fixture As DataAnnotationSqlServerFixture)

    Parameters

Methods

  • ConcurrencyCheckAttribute_throws_if_value_in_database_changed()
    ConcurrencyCheckAttribute_throws_if_value_in_database_changed()
    public override void ConcurrencyCheckAttribute_throws_if_value_in_database_changed()Public Overrides Sub ConcurrencyCheckAttribute_throws_if_value_in_database_changed
  • DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity()
    DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity()
    public override void DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity()Public Overrides Sub DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity
  • DatabaseGeneratedOption_configures_the_property_correctly()
    DatabaseGeneratedOption_configures_the_property_correctly()
    public override ModelBuilder DatabaseGeneratedOption_configures_the_property_correctly()Public Overrides Function DatabaseGeneratedOption_configures_the_property_correctly As ModelBuilder

    Returns

  • Field_annotations_are_enabled()
    Field_annotations_are_enabled()
    public override ModelBuilder Field_annotations_are_enabled()Public Overrides Function Field_annotations_are_enabled As ModelBuilder

    Returns

  • Key_and_column_work_together()
    Key_and_column_work_together()
    public override ModelBuilder Key_and_column_work_together()Public Overrides Function Key_and_column_work_together As ModelBuilder

    Returns

  • Key_and_MaxLength_64_produce_nvarchar_64()
    Key_and_MaxLength_64_produce_nvarchar_64()
    public override ModelBuilder Key_and_MaxLength_64_produce_nvarchar_64()Public Overrides Function Key_and_MaxLength_64_produce_nvarchar_64 As ModelBuilder

    Returns

  • MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length()
    MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length()
    public override void MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length()Public Overrides Sub MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length
  • Non_public_annotations_are_enabled()
    Non_public_annotations_are_enabled()
    public override ModelBuilder Non_public_annotations_are_enabled()Public Overrides Function Non_public_annotations_are_enabled As ModelBuilder

    Returns

  • RequiredAttribute_for_navigation_throws_while_inserting_null_value()
    RequiredAttribute_for_navigation_throws_while_inserting_null_value()
    public override void RequiredAttribute_for_navigation_throws_while_inserting_null_value()Public Overrides 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 override void RequiredAttribute_for_property_throws_while_inserting_null_value()Public Overrides Sub RequiredAttribute_for_property_throws_while_inserting_null_value
  • StringLengthAttribute_throws_while_inserting_value_longer_than_max_length()
    StringLengthAttribute_throws_while_inserting_value_longer_than_max_length()
    public override void StringLengthAttribute_throws_while_inserting_value_longer_than_max_length()Public Overrides Sub StringLengthAttribute_throws_while_inserting_value_longer_than_max_length
  • TableNameAttribute_affects_table_name_in_TPH()
    TableNameAttribute_affects_table_name_in_TPH()
    public override ModelBuilder TableNameAttribute_affects_table_name_in_TPH()Public Overrides Function TableNameAttribute_affects_table_name_in_TPH As ModelBuilder

    Returns

  • Timestamp_takes_precedence_over_MaxLength()
    Timestamp_takes_precedence_over_MaxLength()
    public override ModelBuilder Timestamp_takes_precedence_over_MaxLength()Public Overrides Function Timestamp_takes_precedence_over_MaxLength As ModelBuilder

    Returns

  • Timestamp_takes_precedence_over_MaxLength_with_value()
    Timestamp_takes_precedence_over_MaxLength_with_value()
    public override ModelBuilder Timestamp_takes_precedence_over_MaxLength_with_value()Public Overrides 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 override void TimestampAttribute_throws_if_value_in_database_changed()Public Overrides Sub TimestampAttribute_throws_if_value_in_database_changed
  • UseTransaction(DatabaseFacade, IDbContextTransaction)
    UseTransaction(DatabaseFacade, IDbContextTransaction)
    protected override void UseTransaction(DatabaseFacade facade, IDbContextTransaction transaction)Protected Overrides Sub UseTransaction(facade As DatabaseFacade, transaction As IDbContextTransaction)

    Parameters

Details

Assembly

Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.dll