General information
Category:
The Mere Mortals .NET Framework
Environment versions
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only