/// <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)); }
/// <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)); }