C# Class CqlSharp.Linq.CqlDatabase

Provides access to the database underlying a context
Inheritance: IDisposable
显示文件 Open project: reuzel/CqlSharp

Private Properties

Property Type Description
CqlDatabase System
LogQuery void
SetConnection void

Public Methods

Method 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

Method 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 method

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

Dispose() public method

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

UseTransaction() public method

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