Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't run query from inside a transaction?
Message
De
02/09/2004 13:43:28
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, États-Unis
 
 
À
02/09/2004 13:36:17
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00938776
Message ID:
00938868
Vues:
30
Bonnie,

>>That's typically something I'll check before I ever send the updates to the backend so that the user can fix it. Unless you're not talking about user-input values.

Yes these are user input values. And yes I'm trying to check for uniqueness before I send the user updates. The only way to do that however is to run a SELECT statement against the database to see if the values already exist before sending the updates. I'm just not sure how to do that in the context of the framework.

In MM.NET there is a specific hook which calls an overridable function. This is where such checks are supposed to be coded. Unfortunately by the time the CheckRulesHook() method is called the transaction has apparently already begun.

Max...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform