I know that this question is repeated one. But no one could answer briefly enough to answer corrctly. I am getting Nhibernate error ‘ No row with given identiifer found error’ when im trying to use the guid to give me the record from the table. I am using Nhibernate load function to load the record with the unique identifier(GUID) but if the record is not there it is giving exception. Am I missing some property in hbm.xml file?
Share
From the documentation,
If you want to query for a particular record and not have an exception, use an actual query or the
Get()method.Also from the documentation:
So use
Get()and check the result for null.