Using Fluent NHibernate, I am faced with the relationship AsBag()and AsSet()to HasManyand HasManyToMany. I did a few searches and I just didn't find anything. Can someone explain to me what this means and what is the meaning?
AsBag()
AsSet()
HasMany
HasManyToMany
The post here briefly explains the differences.
Thus, they are both unordered collections:
SO: vs NHibernate
Check the mathematical concepts of Set / Multiset (Bag) and see if they can push you in the right direction.
http://en.wikipedia.org/wiki/Set_ (math)
http://en.wikipedia.org/wiki/Multiset