C# Class Shaolinq.Postgres.PostgresSqlTransactionalCommandsContext

Inheritance: Shaolinq.Persistence.DefaultSqlTransactionalCommandsContext
ファイルを表示 Open project: tumtumtum/Shaolinq

Public Methods

Method Description
CommitAsync ( ) : Task
CommitAsync ( CancellationToken cancellationToken ) : Task
PostgresSqlTransactionalCommandsContext ( SqlDatabaseContext sqlDatabaseContext, IDbConnection connection, System.Data.TransactionContext transactionContext ) : System
Prepare ( ) : void
RollbackAsync ( ) : Task
RollbackAsync ( CancellationToken cancellationToken ) : Task

Protected Methods

Method Description
CreateParameter ( IDbCommand command, string parameterName, Type type, object value ) : IDbDataParameter
GetDbType ( Type type ) : DbType

Private Methods

Method Description
Commit ( ) : void
Rollback ( ) : void

Method Details

CommitAsync() public method

public CommitAsync ( ) : Task
return Task

CommitAsync() public method

public CommitAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
return Task

CreateParameter() protected method

protected CreateParameter ( IDbCommand command, string parameterName, Type type, object value ) : IDbDataParameter
command IDbCommand
parameterName string
type System.Type
value object
return IDbDataParameter

GetDbType() protected method

protected GetDbType ( Type type ) : DbType
type System.Type
return DbType

PostgresSqlTransactionalCommandsContext() public method

public PostgresSqlTransactionalCommandsContext ( SqlDatabaseContext sqlDatabaseContext, IDbConnection connection, System.Data.TransactionContext transactionContext ) : System
sqlDatabaseContext Shaolinq.Persistence.SqlDatabaseContext
connection IDbConnection
transactionContext System.Data.TransactionContext
return System

Prepare() public method

public Prepare ( ) : void
return void

RollbackAsync() public method

public RollbackAsync ( ) : Task
return Task

RollbackAsync() public method

public RollbackAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
return Task