Hi, I'm trying to setup a sample project using NHibernate and Fluent NHibernate. I am using the example mappings from the Fluent NHibernate web-site.
My question is about the many-to-many mapping between Store and Product. It seems (when looking at the generated SQL) that when adding a product to the store, NHibernate deletes all the records from the association table (StoreProduct) that belong to that store, and then inserts all the records again, now including the association to the new product I added.
Is this the default behavior or am I missing something? It just seems not very efficient to delete and re-insert all the associations every time I need to add one.