SqlTransaction

E277026

SqlTransaction is a .NET class that represents a SQL Server database transaction, allowing you to commit or roll back a series of operations as a single unit of work.

All labels observed (2)

How this entity was disambiguated

Statements (49)

Predicate Object
instanceOf .NET class
ADO.NET class
database transaction abstraction
associatedWith SqlCommand
SqlConnection
linked to: DbConnection
belongsToAssembly System.Data.dll
linked to: System.Data
canBeAssignedTo SqlCommand.Transaction property
createdBy SqlConnection.BeginTransaction()
SqlConnection.BeginTransaction(IsolationLevel)
linked to: SqlTransaction
definedIn System.Data.SqlClient namespace
linked to: System.Data
documentationUrl https://learn.microsoft.com/dotnet/api/system.data.sqlclient.sqltransaction
ensuresProperty all-or-nothing execution of a set of SQL statements
hasMethod Commit()
Dispose()
Equals(Object)
GetHashCode()
GetType()
Rollback()
Rollback(String)
Save(String)
ToString()
hasProperty Connection
IsolationLevel
SupportsSavepoints
TransactionId
implements IDisposable
linked to: System.IDisposable
inheritsFrom DbTransaction
introducedIn .NET Framework 1.1
linked to: .NET Framework
languageBinding C#
VB.NET
linked to: Visual Basic .NET
lifecycle valid until committed, rolled back, or connection is closed
partOf ADO.NET
platform .NET 5+
linked to: .NET 5

.NET Core
.NET Framework
represents SQL Server database transaction
requires open SqlConnection
rollbackOn unhandled exceptions when explicitly rolled back by code
supportsFeature savepoints via Save(String)
supportsOperation Commit
Dispose
Rollback
Save
threadSafety instance members are not guaranteed to be thread-safe
usedFor controlling transaction isolation level
ensuring atomicity of database operations
explicit transaction management in ADO.NET
grouping multiple SQL commands into a single unit of work
usedWith SQL Server

How these facts were elicited

Referenced by (3)

Full triples — surface form annotated when it differs from this entity's canonical label.

SqlTransaction createdBy SqlConnection.BeginTransaction(IsolationLevel)
linked to: SqlTransaction
SqlBulkCopy canUseTransaction SqlTransaction