OptimisticConcurrencySqlServerTest OptimisticConcurrencySqlServerTest Class

Definition

public class OptimisticConcurrencySqlServerTest : OptimisticConcurrencyTestBase<SqlServerTestStore, F1SqlServerFixture>, IDisposable
Public Class OptimisticConcurrencySqlServerTest
    Inherits OptimisticConcurrencyTestBase(Of SqlServerTestStore, F1SqlServerFixture)
    Implements IDisposable
Inheritance
System.ObjectSystem.Object
OptimisticConcurrencySqlServerTestOptimisticConcurrencySqlServerTest
Implements
System.IDisposableSystem.IDisposable

Constructors

OptimisticConcurrencySqlServerTest(F1SqlServerFixture) OptimisticConcurrencySqlServerTest(F1SqlServerFixture)

public OptimisticConcurrencySqlServerTest(F1SqlServerFixture fixture)
Public Sub New(fixture As F1SqlServerFixture)
Parameters

Methods

Adding_the_same_entity_twice_results_in_DbUpdateException() Adding_the_same_entity_twice_results_in_DbUpdateException()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Attempting_to_add_same_relationship_twice_for_many_to_many_results_in_independent_association_exception() Attempting_to_add_same_relationship_twice_for_many_to_many_results_in_independent_association_exception()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Attempting_to_delete_same_relationship_twice_for_many_to_many_results_in_independent_association_exception() Attempting_to_delete_same_relationship_twice_for_many_to_many_results_in_independent_association_exception()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Calling_Reload_on_a_Deleted_entity_makes_the_entity_unchanged(Boolean) Calling_Reload_on_a_Deleted_entity_makes_the_entity_unchanged(Boolean)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Calling_Reload_on_a_Deleted_entity_that_is_not_in_database_detaches_it(Boolean) Calling_Reload_on_a_Deleted_entity_that_is_not_in_database_detaches_it(Boolean)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Calling_Reload_on_a_Detached_entity_makes_the_entity_unchanged(Boolean) Calling_Reload_on_a_Detached_entity_makes_the_entity_unchanged(Boolean)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Calling_Reload_on_a_Detached_entity_that_is_not_in_database_detaches_it(Boolean) Calling_Reload_on_a_Detached_entity_that_is_not_in_database_detaches_it(Boolean)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Calling_Reload_on_a_Modified_entity_makes_the_entity_unchanged(Boolean) Calling_Reload_on_a_Modified_entity_makes_the_entity_unchanged(Boolean)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Calling_Reload_on_a_Modified_entity_that_is_not_in_database_detaches_it(Boolean) Calling_Reload_on_a_Modified_entity_that_is_not_in_database_detaches_it(Boolean)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Calling_Reload_on_an_Added_entity_that_was_saved_elsewhere_makes_the_entity_unchanged(Boolean) Calling_Reload_on_an_Added_entity_that_was_saved_elsewhere_makes_the_entity_unchanged(Boolean)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Calling_Reload_on_an_Unchanged_entity_makes_the_entity_unchanged(Boolean) Calling_Reload_on_an_Unchanged_entity_makes_the_entity_unchanged(Boolean)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Calling_Reload_on_an_Unchanged_entity_that_is_not_in_database_detaches_it(Boolean) Calling_Reload_on_an_Unchanged_entity_that_is_not_in_database_detaches_it(Boolean)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Calling_Reload_on_an__Added_entity_that_is_not_in_database_is_no_op(Boolean) Calling_Reload_on_an__Added_entity_that_is_not_in_database_is_no_op(Boolean)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Change_in_independent_association_after_change_in_different_concurrency_token_results_in_independent_association_exception() Change_in_independent_association_after_change_in_different_concurrency_token_results_in_independent_association_exception()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Change_in_independent_association_results_in_independent_association_exception() Change_in_independent_association_results_in_independent_association_exception()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

ClientPodiums ClientPodiums

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

ConcurrencyTestAsync(Action, Action, Action, Action) ConcurrencyTestAsync(Action(Of F1Context), Action(Of F1Context), Action(Of F1Context, DbUpdateException), Action(Of F1Context))

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Concurrency_issue_where_a_complex_type_nested_member_is_the_concurrency_token_can_be_handled() Concurrency_issue_where_a_complex_type_nested_member_is_the_concurrency_token_can_be_handled()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Concurrency_issue_where_the_FK_is_the_concurrency_token_can_be_handled() Concurrency_issue_where_the_FK_is_the_concurrency_token_can_be_handled()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

CreateF1Context() CreateF1Context()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Deleting_the_same_entity_twice_results_in_DbUpdateConcurrencyException() Deleting_the_same_entity_twice_results_in_DbUpdateConcurrencyException()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Deleting_then_updating_the_same_entity_results_in_DbUpdateConcurrencyException() Deleting_then_updating_the_same_entity_results_in_DbUpdateConcurrencyException()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Deleting_then_updating_the_same_entity_results_in_DbUpdateConcurrencyException_which_can_be_resolved_with_store_values() Deleting_then_updating_the_same_entity_results_in_DbUpdateConcurrencyException_which_can_be_resolved_with_store_values()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Dispose() Dispose()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Fixture Fixture

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Modifying_concurrency_token_only_is_noop() Modifying_concurrency_token_only_is_noop()

public Task Modifying_concurrency_token_only_is_noop()
Public Function Modifying_concurrency_token_only_is_noop As Task
Returns
System.Threading.Tasks.Task System.Threading.Tasks.Task

Nullable_client_side_concurrency_token_can_be_used() Nullable_client_side_concurrency_token_can_be_used()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

ResolveConcurrencyTokens(EntityEntry) ResolveConcurrencyTokens(EntityEntry)

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Simple_concurrency_exception_can_be_resolved_with_client_values() Simple_concurrency_exception_can_be_resolved_with_client_values()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Simple_concurrency_exception_can_be_resolved_with_new_values() Simple_concurrency_exception_can_be_resolved_with_new_values()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Simple_concurrency_exception_can_be_resolved_with_store_values() Simple_concurrency_exception_can_be_resolved_with_store_values()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Simple_concurrency_exception_can_be_resolved_with_store_values_using_Reload() Simple_concurrency_exception_can_be_resolved_with_store_values_using_Reload()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Simple_concurrency_exception_can_be_resolved_with_store_values_using_equivalent_of_accept_changes() Simple_concurrency_exception_can_be_resolved_with_store_values_using_equivalent_of_accept_changes()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

StorePodiums StorePodiums

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

TestStore TestStore

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Two_concurrency_issues_in_one_to_many_related_entities_can_be_handled_by_dealing_with_dependent_first() Two_concurrency_issues_in_one_to_many_related_entities_can_be_handled_by_dealing_with_dependent_first()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Two_concurrency_issues_in_one_to_one_related_entities_can_be_handled_by_dealing_with_dependent_first() Two_concurrency_issues_in_one_to_one_related_entities_can_be_handled_by_dealing_with_dependent_first()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Updating_then_deleting_the_same_entity_results_in_DbUpdateConcurrencyException() Updating_then_deleting_the_same_entity_results_in_DbUpdateConcurrencyException()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

Updating_then_deleting_the_same_entity_results_in_DbUpdateConcurrencyException_which_can_be_resolved_with_store_values() Updating_then_deleting_the_same_entity_results_in_DbUpdateConcurrencyException_which_can_be_resolved_with_store_values()

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>

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

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

Inherited from Microsoft.EntityFrameworkCore.Specification.Tests.OptimisticConcurrencyTestBase<Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.Utilities.SqlServerTestStore, Microsoft.EntityFrameworkCore.SqlServer.FunctionalTests.F1SqlServerFixture>