开发者

SQL insert with hilo + inheritance

I would like to insert 开发者_运维百科some data using plain sql into some tables that use hilo id generation in conjunction with nhibernate. Is this possible? I have found some similar questions but no definite answer yet. Thanks!

Chris


Sure you can do it. Just update the hi value in appropriate table and generate Id for inserts. Nhibernate won't validate ID's in DB.

unique key table is used only for inserts, and once object is in DB it doesn't matter anymore where its id came from

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜