Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which one is better for NHibernate collection mapping? [duplicate]

there are the following types of collection mapping in NHibernate:

Set
List
Bag
Idbag
Map
Array

Which one is better in use and why?

like image 864
masoud ramezani Avatar asked Feb 02 '26 07:02

masoud ramezani


1 Answers

There are no good or bad collections.They are used for different purposes.

For example if you have unique elements you should use set.

You can start from here

like image 152
Sanja Melnichuk Avatar answered Feb 03 '26 20:02

Sanja Melnichuk