mysql - get the next id -
My question is how to get the next ID that uses NHibernate in mysql db for an Auto-Entrance ID column ?
Thank you,
depending on the details given below (one answer in the form of)? I think that you are actually looking for the NHibernate facility, so that the database can automatically be read back to the ID:
This will be determined by the database when the value of the ID is assigned to NHibernate, This value will not be sent as part of its INSERT statement and after the inclusion, the value of the ID column will be read back. But you have to tell the database (in table definition) that it should automatically generate a value for the ID column for each record ...
Comments
Post a Comment