NHibernate Many-To-Many Is Deleting All Associations Before Inserting

前端 未结 1 1346
孤独总比滥情好
孤独总比滥情好 2020-12-19 16:43

I have a Users table and a Networks table with a many-to-many relationship between them (a user may be long to multiple networks and a network may contain many users). The

相关标签:
1条回答
  • 2020-12-19 17:19

    The behaviour is by design. See, NH do not know what's current/new/deleted in the list. So by deleting all and inserting whatever in the list will make sense.

    0 讨论(0)
提交回复
热议问题