DataAnnotationSqlServerTest DataAnnotationSqlServerTest Class

Definition

public class DataAnnotationSqlServerTest : DataAnnotationTestBase<SqlServerTestStore, DataAnnotationSqlServerFixture>, IDisposable
Public Class DataAnnotationSqlServerTest
    Inherits DataAnnotationTestBase(Of SqlServerTestStore, DataAnnotationSqlServerFixture)
    Implements IDisposable
Inheritance
Implements
System.IDisposableSystem.IDisposable

Inherited Members

Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase{Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore,Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture}

Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.FixtureMicrosoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Fixture
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.TestStoreMicrosoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.TestStore

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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.ConcurrencyCheckAttribute_throws_if_value_in_database_changed()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.DatabaseGeneratedAttribute_autogenerates_values_when_set_to_identity()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.DatabaseGeneratedOption_configures_the_property_correctly()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.DatabaseGeneratedOption_configures_the_property_correctly()

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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Field_annotations_are_enabled()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Field_annotations_are_enabled()

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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Key_and_column_work_together()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Key_and_column_work_together()

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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Key_and_MaxLength_64_produce_nvarchar_64()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Key_and_MaxLength_64_produce_nvarchar_64()

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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.MaxLengthAttribute_throws_while_inserting_value_longer_than_max_length()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Non_public_annotations_are_enabled()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Non_public_annotations_are_enabled()

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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.RequiredAttribute_for_navigation_throws_while_inserting_null_value()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.RequiredAttribute_for_property_throws_while_inserting_null_value()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.StringLengthAttribute_throws_while_inserting_value_longer_than_max_length()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.TableNameAttribute_affects_table_name_in_TPH()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.TableNameAttribute_affects_table_name_in_TPH()

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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Timestamp_takes_precedence_over_MaxLength()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Timestamp_takes_precedence_over_MaxLength()

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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Timestamp_takes_precedence_over_MaxLength_with_value()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.Timestamp_takes_precedence_over_MaxLength_with_value()

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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.TimestampAttribute_throws_if_value_in_database_changed()Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.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
Overrides
Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.UseTransaction(Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade, Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)Microsoft.EntityFrameworkCore.Specification.Tests.DataAnnotationTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.DataAnnotationSqlServerFixture>.UseTransaction(Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade, Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)