Skip to content

Commit

Permalink
2007-08-16 Carlos Guzmán Álvarez <carlosga05@gmail.com>
Browse files Browse the repository at this point in the history
	* FirebirdSql\Data\FirebirdClient\FbConnection.cs:
	* FirebirdSql\Data\FirebirdClient\FbEnlistmentNotification.cs:

		- Fixed issue #DNET-110
  • Loading branch information
carlosga committed Aug 16, 2007
1 parent 3be4f8a commit 2eb6318
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
Expand Up @@ -366,6 +366,34 @@ private void EnlistmentCompleted(object sender, EventArgs e)
this.enlistmentNotification = null;
}

public FbTransaction BeginTransaction(System.Transactions.IsolationLevel isolationLevel)
{
switch (isolationLevel)
{
case System.Transactions.IsolationLevel.Chaos:
return this.BeginTransaction(System.Data.IsolationLevel.Chaos, null);

case System.Transactions.IsolationLevel.ReadUncommitted:
return this.BeginTransaction(System.Data.IsolationLevel.ReadUncommitted, null);

case System.Transactions.IsolationLevel.RepeatableRead:
return this.BeginTransaction(System.Data.IsolationLevel.RepeatableRead, null);

case System.Transactions.IsolationLevel.Serializable:
return this.BeginTransaction(System.Data.IsolationLevel.Serializable, null);

case System.Transactions.IsolationLevel.Snapshot:
return this.BeginTransaction(System.Data.IsolationLevel.Snapshot, null);

case System.Transactions.IsolationLevel.Unspecified:
return this.BeginTransaction(System.Data.IsolationLevel.Unspecified, null);

case System.Transactions.IsolationLevel.ReadCommitted:
default:
return this.BeginTransaction(System.Data.IsolationLevel.ReadCommitted, null);
}
}

#endif

#endregion
Expand Down
Expand Up @@ -54,10 +54,11 @@ public bool IsCompleted
#region · Constructors ·

public FbEnlistmentNotification(FbConnectionInternal connection, Transaction systemTransaction)
{
{
this.connection = connection;
this.transaction = this.connection.BeginTransaction(System.Data.IsolationLevel.ReadCommitted, null);
this.transaction = connection.BeginTransaction(systemTransaction.IsolationLevel);
this.systemTransaction = systemTransaction;

this.systemTransaction.EnlistVolatile(this, System.Transactions.EnlistmentOptions.None);
}

Expand Down

0 comments on commit 2eb6318

Please sign in to comment.