A bag permits duplicates, so it has no primary key

Namespace: NHibernate.Mapping
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
[SerializableAttribute]
public class Bag : Collection
Visual Basic
<SerializableAttribute> _
Public Class Bag _
	Inherits Collection
Visual C++
[SerializableAttribute]
public ref class Bag : public Collection

Inheritance Hierarchy

System..::..Object
  NHibernate.Mapping..::..Collection
    NHibernate.Mapping..::..Bag

See Also