Hi all,
I'm writting a program that searches (by ID, Name and Surname but ID is a must) a passenger in one database table X and if found, save the details in another table Y (if not found, save the details anyway). I'm not familiar with NHibernate concept but I've managed to get the save (input values) part working. I need to check if the ID inserted by user in a screen exist in the database table X, and then save the details into table Y. Please, can you help me with the code or guidance on how to achieve this.
Thanks.
|