You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Extensions.Transactions.cs
+1-7Lines changed: 1 addition & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ public static partial class Extensions
17
17
/// <param name="connection">The connection to transact with.</param>
18
18
/// <param name="conditionalAction">The handler to execute while a transaction is pending. Returning a 'Commit' value of true signals to commit the transaction.</param>
19
19
/// <param name="token">A optional token that if cancelled will cause this transaction to be aborted or rolled-back.</param>
20
-
/// <returns>True if the transaction was committed.</returns>
20
+
/// <returns>The value retured from the conditional action.</returns>
@@ -64,7 +64,6 @@ public static bool ExecuteTransactionConditional<TConn>(
64
64
65
65
/// <summary>
66
66
/// Begins a transaction before executing the action. Commits if there are no exceptions and the optional provided token is not cancelled. Otherwise rolls-back the transaction.
67
-
/// If the token provided is already cancelled, nothing is done and the default value is returned.
/// <typeparam name="T">The value returned from the action.</typeparam>
@@ -79,7 +78,6 @@ public static T ExecuteTransaction<TConn, T>(
79
78
80
79
/// <summary>
81
80
/// Begins a transaction before executing the action. Commits if there are no exceptions and the optional provided token is not cancelled. Otherwise rolls-back the transaction.
82
-
/// If the token provided is already cancelled, nothing is done and the default value is returned.
/// <param name="connection">The connection to transact with.</param>
@@ -93,7 +91,6 @@ public static void ExecuteTransaction<TConn>(
93
91
94
92
/// <summary>
95
93
/// Begins a transaction before executing the action. Commits if there are no exceptions, the 'Commit' value from the action is true, and the optional provided token is not cancelled. Otherwise rolls-back the transaction.
96
-
/// If the token provided is already cancelled, nothing is done and the default value is returned.
/// <typeparam name="T">The value returned from the action.</typeparam>
@@ -134,7 +131,6 @@ public static void ExecuteTransaction<TConn>(
134
131
135
132
/// <summary>
136
133
/// Begins a transaction before executing the action. Commits if there are no exceptions, the 'Commit' value from the action is true, and the optional provided token is not cancelled. Otherwise rolls-back the transaction.
137
-
/// If the token provided is already cancelled, nothing is done and the default value is returned.
/// <typeparam name="T">The value returned from the action.</typeparam>
@@ -149,7 +145,6 @@ public static async Task<bool> ExecuteTransactionConditionalAsync<TConn, T>(
149
145
150
146
/// <summary>
151
147
/// Begins a transaction before executing the action. Commits if there are no exceptions and the optional provided token is not cancelled. Otherwise rolls-back the transaction.
152
-
/// If the token provided is already cancelled, nothing is done and the default value is returned.
/// <typeparam name="T">The value returned from the action.</typeparam>
@@ -164,7 +159,6 @@ public static async Task<T> ExecuteTransactionAsync<TConn, T>(
164
159
165
160
/// <summary>
166
161
/// Begins a transaction before executing the action. Commits if there are no exceptions and the optional provided token is not cancelled. Otherwise rolls-back the transaction.
167
-
/// If the token provided is already cancelled, nothing is done and the default value is returned.
<PackageReleaseNotes>Updated transaction methods be more controllable and explicit. Always passing the connection as a parameter for the handler allows for static handler methods.
18
18
19
19
Added cancellation tokens to all applicable extensions.</PackageReleaseNotes>
0 commit comments