What are bag and kit in nHibernate?

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?

+3
source share
3 answers

The post here briefly explains the differences.

Thus, they are both unordered collections:

  • Set => Item may not appear more than once
  • Bag => Items may appear more than once
+7
source
+7

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

0
source

All Articles