Detaches from the transaction and leaves resources still allocated. You must set
DisposeBehavior to CloseResources on at least one
instance to ensure there are no resource leaks when doing parallel reads.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This document provides versioned documentation for the `Google.Cloud.Spanner.Data` library, starting with version 3.5.0 and going up to the latest beta version, 5.0.0-beta05."],["The `DisposeBehavior` enum within the `Google.Cloud.Spanner.Data` namespace defines how `SpannerTransaction` resources are managed when the `Dispose` method is called."],["The `DisposeBehavior` enum offers three options: `CloseResources` which automatically closes resources, `Detach` which leaves resources allocated, and `ReleaseToPool` which returns transactional resources to a global pool."],["The `Detach` option for `DisposeBehavior` is critical when performing parallel reads, requiring at least one instance to be set to `CloseResources` to prevent resource leaks."]]],[]]