views:

157

answers:

1

Hi i am inserting a row of data into a table through nhibernate, how to get the Id(auto number)of the last inserted row? please help me...

+1  A: 

Nhibernate do it automatically. If you put in mapping of entity Id generator="native" and set name of required property

Sly