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."],[[["The latest beta version available is 5.0.0-beta05 for the Google.Cloud.Spanner.Data library, with multiple previous releases also listed."],["The `DisposeBehavior` enum defines how `SpannerTransaction` handles resource management when its `Dispose` method is called."],["`CloseResources` automatically closes resources upon disposal, ensuring resources are cleaned."],["`Detach` severs the link with the transaction, but requires at least one instance to set `DisposeBehavior` to `CloseResources` to prevent resource leaks."],["`ReleaseToPool` returns transactional resources to a shared pool upon disposal, but cannot be used with shared transactions."]]],[]]