Hi, I use surrogate keys on my tables, but some tables have columns that are unique. For example one cannot create a project that has the same name. So I am wondering what is the best way to query using NH to check if name already exists in the table, so I can make a check rather then catching exception. I do not want to populate the entity with that name just return count. Can anybody give example.
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
