public void BeginTransaction(bool readOnly)
{
if (this.inTransaction)
throw new InvalidOperationException();
using (SetSessionContext())
Api.JetBeginTransaction2(this.jetSession, readOnly ? BeginTransactionGrbit.ReadOnly : BeginTransactionGrbit.None);
this.inTransaction = true;
this.readOnly = readOnly;
}