Class MySqlTransaction
Inheritance
System.Object
System.MarshalByRefObject
System.Data.Common.DbTransaction
MySqlTransaction
Implements
System.Data.IDbTransaction
System.IDisposable
Inherited Members
System.Data.Common.DbTransaction.Dispose()
System.Data.Common.DbTransaction.Connection
System.Data.Common.DbTransaction.System.Data.IDbTransaction.Connection
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MySql.Data.MySqlClient
Assembly: Azos.MySql.dll
Syntax
public sealed class MySqlTransaction : DbTransaction, IDbTransaction, IDisposable
Properties
DbConnection
Declaration
protected override DbConnection DbConnection { get; }
Property Value
Type | Description |
---|---|
System.Data.Common.DbConnection |
Overrides
System.Data.Common.DbTransaction.DbConnection
IsolationLevel
Declaration
public override IsolationLevel IsolationLevel { get; }
Property Value
Type | Description |
---|---|
System.Data.IsolationLevel |
Overrides
System.Data.Common.DbTransaction.IsolationLevel
Methods
Commit()
Declaration
public override void Commit()
Overrides
System.Data.Common.DbTransaction.Commit()
CommitAsync(CancellationToken)
Declaration
public Task CommitAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
System.Data.Common.DbTransaction.Dispose(System.Boolean)
Rollback()
Declaration
public override void Rollback()
Overrides
System.Data.Common.DbTransaction.Rollback()
RollbackAsync(CancellationToken)
Declaration
public Task RollbackAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Implements
System.Data.IDbTransaction
System.IDisposable