Definition
Assembly: CloudNimble.BlazorEssentials.TursoDb.dll Namespace: CloudNimble.BlazorEssentials.TursoDb Inheritance: System.ObjectSyntax
Summary
Represents a database transaction that can be committed or rolled back. Implements IAsyncDisposable for automatic rollback if not committed.Examples
Constructors
.ctor Inherited
Inherited from
objectSyntax
Properties
Database
Gets the database this transaction belongs to.Syntax
Property Value
Type:CloudNimble.BlazorEssentials.TursoDb.TursoDatabase
IsCompleted
Gets whether the transaction has been completed (committed or rolled back).Syntax
Property Value
Type:bool
Methods
CommitAsync
Commits the transaction, making all changes permanent.Syntax
Returns
Type:System.Threading.Tasks.Task
Exceptions
| Exception | Description |
|---|---|
InvalidOperationException | Thrown if the transaction is already completed. |
DisposeAsync
Syntax
Returns
Type:System.Threading.Tasks.ValueTask
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
RollbackAsync
Rolls back the transaction, discarding all changes.Syntax
Returns
Type:System.Threading.Tasks.Task
Exceptions
| Exception | Description |
|---|---|
InvalidOperationException | Thrown if the transaction is already completed. |
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
Related APIs
- System.IAsyncDisposable