开发者

NHibernate Insert Ignore

开发者 https://www.devze.com 2022-12-21 21:58 出处:网络
I need use Insert Ignore for my table, which have Unique index on several fie开发者_运维知识库lds.

I need use Insert Ignore for my table, which have Unique index on several fie开发者_运维知识库lds. How can i do it? Thank you


I believe insert ignore is a mysql-specific extension to SQL, which means it's not supported by most DBs.

You will need to fallback on raw SQL on this one, or make use of the exceptions thrown by NHibernate (and the underlying dialect)

0

精彩评论

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