Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EF6 Rollback blues
Message
Information générale
Forum:
C#
Catégorie:
Entity Framework
Divers
Thread ID:
01655476
Message ID:
01655478
Vues:
61
>
>            using (var txn = context.Database.BeginTransaction())
>            {
>                BISaveTransaction.CommitTransactions(context,rs);
>                modulate();
>                processTransactionHeader();
>                processTransactionDetails();
>                if (or.Success == false)
>                {
>                    Monitor.write($" ===>  Rolling back - {t.Document}" );
>                    txn.Rollback();
>                    return;
>                }
>                processRsHeaders();
>                processEmHeaders();
>
>                txn.Commit();
>                th_Id = th.TransactionHeaders_Id;
>            }
>
>
>When or.Success returns false after process TransactionDetails, updates of OnHand fields of related tables are not rolled back.
>
>Puzzled.

Did you try running SQL Profiler during the process to monitor what's going on?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform