C# Class CqlSharp.Linq.CqlDatabase

Provides access to the database underlying a context
Inheritance: IDisposable
Afficher le fichier Open project: reuzel/CqlSharp

Private Properties

Свойство Type Description
CqlDatabase System
LogQuery void
SetConnection void

Méthodes publiques

Méthode Description
BeginTransaction ( ) : CqlBatchTransaction

Begins a transaction on which all operations in this context are executed.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

UseTransaction ( CqlBatchTransaction transaction ) : void

Makes operations in the context use the underlying transaction

Private Methods

Méthode Description
CqlDatabase ( CqlContext cqlContext ) : System
LogQuery ( string cql ) : void

Logs the query.

SetConnection ( CqlConnection connection, bool ownsConnection ) : void

Sets the connection.

Method Details

BeginTransaction() public méthode

Begins a transaction on which all operations in this context are executed.
This context is already bound to an transaction
public BeginTransaction ( ) : CqlBatchTransaction
Résultat CqlBatchTransaction

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

UseTransaction() public méthode

Makes operations in the context use the underlying transaction
public UseTransaction ( CqlBatchTransaction transaction ) : void
transaction CqlBatchTransaction The transaction.
Résultat void