다음을 통해 공유


ObjectContextOptions.EnsureTransactionsForFunctionsAndCommands 속성

정의

SQL 함수 및 명령을 트랜잭션에서 항상 실행해야 하는지 여부를 결정하는 값을 가져오거나 설정합니다.

public bool EnsureTransactionsForFunctionsAndCommands { get; set; }
member this.EnsureTransactionsForFunctionsAndCommands : bool with get, set
Public Property EnsureTransactionsForFunctionsAndCommands As Boolean

속성 값

기본 트랜잭션 동작입니다.

설명

이 플래그는 및 ExecuteStoreCommand(String, Object[]) 와 같은 ExecuteFunction(String, ObjectParameter[]) 메서드가 트랜잭션 외부에서 실행될 때 새 트랜잭션이 시작될지 여부를 결정합니다. 의 동작 SaveChanges()은 변경되지 않습니다.

적용 대상