Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transactions when deleting
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Transactions when deleting
Versions des environnements
Environment:
C# 5.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01580452
Message ID:
01580452
Vues:
41
Hi,

I' ve a buisness object 'parent' and a registerd child object 'child', I use Visual Studio 2012 with actual MM.NET for 2012 and Entity Framework.

If I add new parent with two child entries, saving is correct in one transaction.

If I delete this entry, I get a begin transaction, two delete commands and a commit transaction for 'child', afterwards
a begin transaction, delete command and a commit transaction for 'parent'.

How can I configure, that deletion is in ONE transaction (begin transaction, two delete commands on 'child', delete command on 'parent', commit transaction)?

Thanks in advance,
Andreas
Répondre
Fil
Voir

Click here to load this message in the networking platform