Hi friends, I'm using here NH 2.1.0.1003 and unhAddings to manage my sessions (CpBT).
I would like to get correct Exception from ADO.NET about foreign key violation... is there a way to do that? Before trying that, I was thinking about in my Delete routine, search for relations, to prevent user of deleting something already in use... but it would cost so much. So I decided try to catch ADO.Exception and check it message text for 'foreign'. So, if there is 'foreign' text in exception text, it is a violation and I can alert saying "Impossible to exclude". something like that. Thanks everybody -- Paulo R. Quicoli Editor Técnico - ClubeDelphi Magazine - DevMedia -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
