Ver a proveniência

tweak transaction extension method

master
Savorboard há 6 anos
ascendente
cometimento
690380a3cc
1 ficheiros alterados com 5 adições e 0 eliminações
  1. +5
    -0
      src/DotNetCore.CAP.MongoDB/ICapTransaction.MongoDB.cs

+ 5
- 0
src/DotNetCore.CAP.MongoDB/ICapTransaction.MongoDB.cs Ver ficheiro

@@ -45,6 +45,11 @@ namespace DotNetCore.CAP
public static ICapTransaction Begin(this ICapTransaction transaction,
IClientSessionHandle dbTransaction, bool autoCommit = false)
{
if (!dbTransaction.IsInTransaction)
{
dbTransaction.StartTransaction();
}
transaction.DbTransaction = dbTransaction;
transaction.AutoCommit = autoCommit;



Carregando…
Cancelar
Guardar