public sealed class TransactionSelector : IMessage<TransactionSelector>, IEquatable<TransactionSelector>, IDeepCloneable<TransactionSelector>, IBufferMessage, IMessage
This message is used to select the transaction in which a
[Read][google.spanner.v1.Spanner.Read] or
[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] call runs.
See [TransactionOptions][google.spanner.v1.TransactionOptions] for more information about transactions.
Begin a new transaction and execute this read or SQL query in
it. The transaction ID of the new transaction is returned in
[ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eTransactionSelector\u003c/code\u003e class, which is a key component for managing transactions in Google Cloud Spanner when using the .NET library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionSelector\u003c/code\u003e class is used to determine how a transaction is handled when running a \u003ccode\u003eRead\u003c/code\u003e or \u003ccode\u003eExecuteSql\u003c/code\u003e operation within Google Cloud Spanner.\u003c/p\u003e\n"],["\u003cp\u003eThe page offers documentation for multiple versions of the Google Cloud Spanner .NET library, ranging from version 3.5.0 to 5.0.0-beta05, with the current version being 3.8.0 and the latest being 5.0.0-beta05.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements various interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the base \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransactionSelector\u003c/code\u003e class has properties like \u003ccode\u003eBegin\u003c/code\u003e, \u003ccode\u003eId\u003c/code\u003e, \u003ccode\u003eSelectorCase\u003c/code\u003e, and \u003ccode\u003eSingleUse\u003c/code\u003e that manage different types of transaction options, such as starting a new transaction, using an existing one, or employing a single-use transaction.\u003c/p\u003e\n"]]],[],null,[]]