Determine reason why SaveEntity returned false?

Posts   
 
    
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 15-Sep-2010 06:41:46   

llblgen, adapter,vb.net,v2.6

Any way to determine the reason why a saveentity returns false? An error message or similar?

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 15-Sep-2010 09:25:03   

Are you inserting or updating?

I guess you were updating, and most probably no rows were updated in the database because no rows had a matching PK value. This is the reason for the false return.

Otherwise if a database error occurs an Exception would be thrown.

Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 15-Sep-2010 11:36:47   

ok..so bascially..if it fails it will throw an exception..thanks