Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Network:
Windows 2008 Server
Hi Kathy,
Perhaps you could try using Transactions. Start a Transaction when you start your process. Set a switch somewhere that will be true or false for broken rules. Set the switch to true once a rule is broken on a save. At the end of the process, if there are broken rules, rollback the transaction, else commit the transaction.
During your processing, just write out a log or report so that you have a way to review what errors took place, etc.
BTW, if you don't already have it, create a business process object as described in the help guide. Then add all the business objects needed in the process and create methods to do what I suggested above.
Lastly, as far as MM.NET Classic Entity objects are concerned, this shouldn't be a problem. It what I use and although I haven't done exactly what you are trying to do here, I have done similar import processes just without the stipulation that either everything processes or nothing processes.
HTH
Bob
>Any way that works is okay with me. We are using the MM .NET Classic Entity objects for our projects. I have tried multiple way and haven't gotten any way to work.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement