src/Shared/EntityFramework/Core/Common/Utils/CommandHelper.cs
// <summary>
// Given an entity command and entity transaction, passes through relevant state to store provider
// command.
// </summary>
// <param name="entityCommand"> Entity command. Must not be null. </param>
// <param name="entityTransaction"> Entity transaction. Must not be null. </param>
// <param name="storeProviderCommand"> Store provider command that is being setup. Must not be null. </param>
Given an entity command and entity transaction, passes through relevant state to store provider
command.
Given an entity command and entity transaction passes through relevant state to store provider command .
internal static void SetStoreProviderCommandState(
            EntityCommand entityCommand, EntityTransaction entityTransaction, DbCommand storeProviderCommand)
        {
            DebugCheck.NotNull(entityCommand);
            DebugCheck.NotNull(storeProviderCommand);
            storeProviderCommand.CommandTimeout = entityCommand.CommandTimeout;
            storeProviderCommand.Connection = (entityCommand.Connection).StoreConnection;
            storeProviderCommand.Transaction = (null != entityTransaction) ? entityTransaction.StoreTransaction : null;
            storeProviderCommand.UpdatedRowSource = entityCommand.UpdatedRowSource;
        }
internal static void SetStoreProviderCommandState ( EntityCommand entityCommand , EntityTransaction entityTransaction , DbCommand storeProviderCommand ) { DebugCheck . NotNull ( entityCommand ) ; DebugCheck . NotNull ( storeProviderCommand ) ; storeProviderCommand . CommandTimeout = entityCommand . CommandTimeout ; storeProviderCommand . Connection = ( entityCommand . Connection ) . StoreConnection ; storeProviderCommand . Transaction = ( null != entityTransaction ) ? entityTransaction . StoreTransaction : null ; storeProviderCommand . UpdatedRowSource = entityCommand . UpdatedRowSource ; }
Given an entity command and entity transaction, passes through relevant state to store provider
command.
Given an entity command and entity transaction passes through relevant state to store provider command .
entityCommand
EntityCommand
Entity command. Must not be null.
Entity command . Must not be null .
entityTransaction
EntityTransaction
Entity transaction. Must not be null.
Entity transaction . Must not be null .
storeProviderCommand
DbCommand
Store provider command that is being setup. Must not be null.
Store provider command that is being setup . Must not be null .