public abstract class SpannerTransactionBase : DbTransaction, IDbTransaction, IDisposable, IAsyncDisposable
Reference documentation and code samples for the Google.Cloud.Spanner.Data class SpannerTransactionBase.
Base class for SpannerTransaction, used for compatibility purposes with DbTransaction.
(This class is able to override a new method added to DbTransaction, even if it clashes
with an existing method declaration in SpannerTransaction.)
[[["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\u003eThe \u003ccode\u003eSpannerTransactionBase\u003c/code\u003e class is a base class for \u003ccode\u003eSpannerTransaction\u003c/code\u003e, designed for compatibility with \u003ccode\u003eDbTransaction\u003c/code\u003e in the .NET framework.\u003c/p\u003e\n"],["\u003cp\u003eThis class can override new methods added to \u003ccode\u003eDbTransaction\u003c/code\u003e, even if they conflict with existing methods in \u003ccode\u003eSpannerTransaction\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpannerTransactionBase\u003c/code\u003e implements \u003ccode\u003eIDbTransaction\u003c/code\u003e, \u003ccode\u003eIDisposable\u003c/code\u003e, and \u003ccode\u003eIAsyncDisposable\u003c/code\u003e interfaces, providing functionalities for managing database transactions, and handling resource disposal.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes the \u003ccode\u003eCommitAsync\u003c/code\u003e method for asynchronously committing a database transaction, which overrides the \u003ccode\u003eDbTransaction.CommitAsync(CancellationToken)\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation also references the latest beta release 5.0.0-beta05 and other versioned releases of \u003ccode\u003eSpannerTransactionBase\u003c/code\u003e, from 3.5.0 to 4.6.0, available for use.\u003c/p\u003e\n"]]],[],null,[]]