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

Namespace:  NHibernate.Collection.Generic
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