/// <summary> /// The rollback. /// </summary> /// <param name="dbFunctionSession"> /// The db function session. /// </param> public static void Rollback([NotNull] this IDbFunctionSession dbFunctionSession) { CodeContracts.VerifyNotNull(dbFunctionSession, "dbFunctionSession"); if (dbFunctionSession.DbTransaction != null) { dbFunctionSession.DbTransaction.Rollback(); } }
/// <summary> /// The commit. /// </summary> /// <param name="dbFunctionSession"> /// The db function session. /// </param> public static void Commit([NotNull] this IDbFunctionSession dbFunctionSession) { CodeContracts.ArgumentNotNull(dbFunctionSession, "dbFunctionSession"); if (dbFunctionSession.DbTransaction != null) { dbFunctionSession.DbTransaction.Commit(); } }
/// <summary> /// The commit. /// </summary> /// <param name="dbFunctionSession"> /// The db function session. /// </param> public static void Commit([NotNull] this IDbFunctionSession dbFunctionSession) { CodeContracts.VerifyNotNull(dbFunctionSession, "dbFunctionSession"); dbFunctionSession.DbTransaction?.Commit(); }