DataSource With Unique Constraints on table fields

Posts   
 
    
gs_ham
User
Posts: 4
Joined: 19-Jun-2007
# Posted on: 19-Jun-2007 23:32:48   

I have been using the LLBLGenProDataSource object and it has been working beautifully. However, I now have a situation where my table has a unique contraint on a column. The DataSource object does not seem to handle this well, my form crashes on the save.

From some other threads I have read that there is no way to catch the exception from the datasource. I hate to turn LivePersistance off and do it manually, but maybe that is the only option. Does anyone have any suggestions on how to handle this scenario???

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 20-Jun-2007 09:56:25   

Sorry, but I think turning LivePersistence off is the way.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39912
Joined: 17-Aug-2003
# Posted on: 20-Jun-2007 11:07:39   

Better exception handling has been added to v2.5, now in beta.

Frans Bouma | Lead developer LLBLGen Pro