Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> how to determine UnitOfWork.Commit failure?
 

Pages: 1
LLBLGen Pro Runtime Framework
how to determine UnitOfWork.Commit failure?
Page:1/1 

  Print all messages in this thread  
Poster Message
alexdresko
User



Location:
Greenville, SC
Joined on:
08-Jun-2004 17:30:02
Posted:
336 posts
# Posted on: 06-Nov-2006 19:15:42.  
Using v2 final, Self Servicing, VS2005, C#

How do I determine if a UnitOfWork.Commit succeeds or fails? It doesn't return anything and the documentation doesn't mention any exceptions.
I'm not a player, I just code a lot.   Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37375 posts
# Posted on: 06-Nov-2006 19:31:08.  
Commit succeeds unless an exception occurs. Without an exception, the transaction will be committed, otherwise rolledback.

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
alexdresko
User



Location:
Greenville, SC
Joined on:
08-Jun-2004 17:30:02
Posted:
336 posts
# Posted on: 06-Nov-2006 19:35:31.  
Otis wrote:
Commit succeeds unless an exception occurs. Without an exception, the transaction will be committed, otherwise rolledback.

What's the specific transaction I should keep an eye out for?
I'm not a player, I just code a lot.   Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37375 posts
# Posted on: 06-Nov-2006 20:32:01.  
alexdresko wrote:
Otis wrote:
Commit succeeds unless an exception occurs. Without an exception, the transaction will be committed, otherwise rolledback.

What's the specific transaction I should keep an eye out for?


You mean exception? Regular Smiley

Any exception terminates the transaction. So ORMQueryExecutionException is the one which you will probably run into mostly. Also, ORMEntityValidationException and ORMConcurrencyException can be thrown.


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
alexdresko
User



Location:
Greenville, SC
Joined on:
08-Jun-2004 17:30:02
Posted:
336 posts
# Posted on: 06-Nov-2006 20:39:09.  
Otis wrote:
alexdresko wrote:
Otis wrote:
Commit succeeds unless an exception occurs. Without an exception, the transaction will be committed, otherwise rolledback.

What's the specific transaction I should keep an eye out for?


You mean exception? Regular Smiley

Any exception terminates the transaction. So ORMQueryExecutionException is the one which you will probably run into mostly. Also, ORMEntityValidationException and ORMConcurrencyException can be thrown.

Yes... funny thing is I was thinking EXCEPTION when I wrote transaction.. my fault..
I'm not a player, I just code a lot.   Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.