Insert SQL with hilo + inheritance

I would like to insert some data using plain sql into some tables that use hilo id in combination with nhibernate. Is it possible? I found several similar questions, but no answer yet. Thank!

Chris

+5
source share
1 answer

Of course you can do it. Just update the hi value in the corresponding table and create an Id for the inserts. Nhibernate will not verify the identifier in DB.

the unique key table is used only for inserts, and as soon as the object is in the database, it does not matter now where its identifier came from

+2
source

All Articles