开发者

NHibernate Insert Ignore

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜