Gets a Boolean indicating if this PersistentBag needs to be recreated in the database.

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

Syntax

C#
public override bool NeedsRecreate(
	ICollectionPersister persister
)
Visual Basic
Public Overrides Function NeedsRecreate ( _
	persister As ICollectionPersister _
) As Boolean
Visual C++
public:
virtual bool NeedsRecreate(
	ICollectionPersister^ persister
) override

Parameters

persister
Type: NHibernate.Persister.Collection..::..ICollectionPersister

[Missing <param name="persister"/> documentation for "M:NHibernate.Collection.PersistentBag.NeedsRecreate(NHibernate.Persister.Collection.ICollectionPersister)"]

Return Value

falseFalsefalsefalse (False in Visual Basic) if this is a one-to-many Bag, trueTruetruetrue (True in Visual Basic) if this is not a one-to-many Bag. Since a Bag is an unordered, unindexed collection that permits duplicates it is not possible to determine what has changed in a many-to-many so it is just recreated.

Implements

IPersistentCollection..::..NeedsRecreate(ICollectionPersister)

See Also