As per title. Using native ID’s
The only thing I can think to do is to call GetByExample(entityJustInserted) and pick the one with the highest ID. Not great…anyone got a better way?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get it directly off of the entity you just inserted:
For example:
NHibernate will automatically populate the property with the generated id.