开发者

Nhibernate inserting with values on a bag

开发者 https://www.devze.com 2023-01-02 07:40 出处:网络
I am using a where clause on a bag to filter a bag. Is there any way to make nhibernate insert these filter 开发者_如何学Pythonvalues into the database?IMHO, it is not worth trying to share a table be

I am using a where clause on a bag to filter a bag. Is there any way to make nhibernate insert these filter 开发者_如何学Pythonvalues into the database?


IMHO, it is not worth trying to share a table between many-to-many relations. You can't access the boolean flags in this tables, so you can't change it from NH, except using native sql, which is not how NHibernate should be used. And it will be very very very complicated to make changes on these bags. These table is completely invisible for the object oriented point of view and completely managed by NH.

Just map it to different tables and you'll be happy. Believe me.

0

精彩评论

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