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

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

Syntax

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

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