C# Class Shaolinq.Persistence.SqlTransactionalCommandsContext

Inheritance: IDisposable
Datei anzeigen Open project: tumtumtum/Shaolinq Class Usage Examples

Protected Properties

Property Type Description
dbTransaction IDbTransaction

Public Methods

Method Description
ConvertIsolationLevel ( DataAccessIsolationLevel isolationLevel ) : IsolationLevel
CreateCommand ( ) : IDbCommand
CreateCommand ( SqlCreateCommandOptions options ) : IDbCommand
Delete ( SqlDeleteExpression deleteExpression ) : void
Delete ( Type type, IEnumerable dataAccessObjects ) : void
DeleteAsync ( SqlDeleteExpression deleteExpression ) : Task
DeleteAsync ( SqlDeleteExpression deleteExpression, CancellationToken cancellationToken ) : Task
DeleteAsync ( Type type, IEnumerable dataAccessObjects ) : Task
DeleteAsync ( Type type, IEnumerable dataAccessObjects, CancellationToken cancellationToken ) : Task
Dispose ( ) : void
ExecuteReader ( string sql, IReadOnlyList parameters ) : IDataReader
ExecuteReaderAsync ( string sql, IReadOnlyList parameters ) : Task
ExecuteReaderAsync ( string sql, IReadOnlyList parameters, CancellationToken cancellationToken ) : Task
Insert ( Type type, IEnumerable dataAccessObjects ) : InsertResults
InsertAsync ( Type type, IEnumerable dataAccessObjects ) : Task
InsertAsync ( Type type, IEnumerable dataAccessObjects, CancellationToken cancellationToken ) : Task
Prepare ( ) : void
Update ( Type type, IEnumerable dataAccessObjects ) : void
UpdateAsync ( Type type, IEnumerable dataAccessObjects ) : Task
UpdateAsync ( Type type, IEnumerable dataAccessObjects, CancellationToken cancellationToken ) : Task

Protected Methods

Method Description
CloseConnection ( ) : void
Dispose ( bool disposing ) : void
SqlTransactionalCommandsContext ( ) : System
SqlTransactionalCommandsContext ( SqlDatabaseContext sqlDatabaseContext, IDbConnection dbConnection, System.Data.TransactionContext transactionContext ) : System
SqlTransactionalCommandsContext ( bool supportsAsync ) : System

Private Methods

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

Method Details

CloseConnection() protected method

protected CloseConnection ( ) : void
return void

ConvertIsolationLevel() public static method

public static ConvertIsolationLevel ( DataAccessIsolationLevel isolationLevel ) : IsolationLevel
isolationLevel DataAccessIsolationLevel
return IsolationLevel

CreateCommand() public method

public CreateCommand ( ) : IDbCommand
return IDbCommand

CreateCommand() public method

public CreateCommand ( SqlCreateCommandOptions options ) : IDbCommand
options SqlCreateCommandOptions
return IDbCommand

Delete() public abstract method

public abstract Delete ( SqlDeleteExpression deleteExpression ) : void
deleteExpression Shaolinq.Persistence.Linq.Expressions.SqlDeleteExpression
return void

Delete() public abstract method

public abstract Delete ( Type type, IEnumerable dataAccessObjects ) : void
type System.Type
dataAccessObjects IEnumerable
return void

DeleteAsync() public abstract method

public abstract DeleteAsync ( SqlDeleteExpression deleteExpression ) : Task
deleteExpression Shaolinq.Persistence.Linq.Expressions.SqlDeleteExpression
return Task

DeleteAsync() public abstract method

public abstract DeleteAsync ( SqlDeleteExpression deleteExpression, CancellationToken cancellationToken ) : Task
deleteExpression Shaolinq.Persistence.Linq.Expressions.SqlDeleteExpression
cancellationToken System.Threading.CancellationToken
return Task

DeleteAsync() public abstract method

public abstract DeleteAsync ( Type type, IEnumerable dataAccessObjects ) : Task
type System.Type
dataAccessObjects IEnumerable
return Task

DeleteAsync() public abstract method

public abstract DeleteAsync ( Type type, IEnumerable dataAccessObjects, CancellationToken cancellationToken ) : Task
type System.Type
dataAccessObjects IEnumerable
cancellationToken System.Threading.CancellationToken
return Task

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ExecuteReader() public abstract method

public abstract ExecuteReader ( string sql, IReadOnlyList parameters ) : IDataReader
sql string
parameters IReadOnlyList
return IDataReader

ExecuteReaderAsync() public abstract method

public abstract ExecuteReaderAsync ( string sql, IReadOnlyList parameters ) : Task
sql string
parameters IReadOnlyList
return Task

ExecuteReaderAsync() public abstract method

public abstract ExecuteReaderAsync ( string sql, IReadOnlyList parameters, CancellationToken cancellationToken ) : Task
sql string
parameters IReadOnlyList
cancellationToken System.Threading.CancellationToken
return Task

Insert() public abstract method

public abstract Insert ( Type type, IEnumerable dataAccessObjects ) : InsertResults
type System.Type
dataAccessObjects IEnumerable
return InsertResults

InsertAsync() public abstract method

public abstract InsertAsync ( Type type, IEnumerable dataAccessObjects ) : Task
type System.Type
dataAccessObjects IEnumerable
return Task

InsertAsync() public abstract method

public abstract InsertAsync ( Type type, IEnumerable dataAccessObjects, CancellationToken cancellationToken ) : Task
type System.Type
dataAccessObjects IEnumerable
cancellationToken System.Threading.CancellationToken
return Task

Prepare() public method

public Prepare ( ) : void
return void

SqlTransactionalCommandsContext() protected method

protected SqlTransactionalCommandsContext ( ) : System
return System

SqlTransactionalCommandsContext() protected method

protected SqlTransactionalCommandsContext ( SqlDatabaseContext sqlDatabaseContext, IDbConnection dbConnection, System.Data.TransactionContext transactionContext ) : System
sqlDatabaseContext SqlDatabaseContext
dbConnection IDbConnection
transactionContext System.Data.TransactionContext
return System

SqlTransactionalCommandsContext() protected method

protected SqlTransactionalCommandsContext ( bool supportsAsync ) : System
supportsAsync bool
return System

Update() public abstract method

public abstract Update ( Type type, IEnumerable dataAccessObjects ) : void
type System.Type
dataAccessObjects IEnumerable
return void

UpdateAsync() public abstract method

public abstract UpdateAsync ( Type type, IEnumerable dataAccessObjects ) : Task
type System.Type
dataAccessObjects IEnumerable
return Task

UpdateAsync() public abstract method

public abstract UpdateAsync ( Type type, IEnumerable dataAccessObjects, CancellationToken cancellationToken ) : Task
type System.Type
dataAccessObjects IEnumerable
cancellationToken System.Threading.CancellationToken
return Task

Property Details

dbTransaction protected_oe property

protected IDbTransaction dbTransaction
return IDbTransaction