예제 #1
0
 /// <summary>
 /// Starts a database transaction with the specified isolation level.
 /// </summary>
 /// <param name="dataContext">The data context.</param>
 /// <param name="isolationLevel">The isolation level for the transaction.</param>
 /// <returns>An object representing the new transaction.</returns>
 public DbTransaction BeginTransaction(IsolationLevel isolationLevel)
 {
     return(DataContextExtensions.BeginTransaction(this, isolationLevel));
 }
예제 #2
0
 /// <summary>
 /// Starts a database transaction.
 /// </summary>
 /// <param name="dataContext">The data context.</param>
 /// <returns>An object representing the new transaction.</returns>
 public DbTransaction BeginTransaction()
 {
     return(DataContextExtensions.BeginTransaction(this));
 }