Hi all,
I have come accross a scenerio where CRUD operatons on a table are performed by NHibernate as well as ADO.Net. Problem takes place when insert operation performed using ADO.Net code is followed by NHibernate code insert. In this case I get an error stating Insert failed due to duplicate primary key.
For the primary key ID generation I have used <generator class="hilo"> and a database table is being used where the Hi value is stored.
Any help in this regard would be much appreciated.
Kind regards, Anil Jain
|