Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.DomainModel Namespace / DeleteEventListener Class / DeleteEntity Method
The originating session
The entity to delete
The entity's entry in the NHibernate.ISession
Is delete cascading enabled?
The entity persister.
A cache of already deleted entities.
In This Topic
    DeleteEntity Method
    In This Topic
    Perform the entity deletion. Well, as with most operations, does not really perform it; just schedules an action/execution with the NHibernate.Engine.ActionQueue for execution during flush.
    Syntax
    protected override void DeleteEntity( 
       NHibernate.Event.IEventSource session,
       object entity,
       NHibernate.Engine.EntityEntry entityEntry,
       bool isCascadeDeleteEnabled,
       NHibernate.Persister.Entity.IEntityPersister persister,
       ISet<object> transientEntities
    )

    Parameters

    session
    The originating session
    entity
    The entity to delete
    entityEntry
    The entity's entry in the NHibernate.ISession
    isCascadeDeleteEnabled
    Is delete cascading enabled?
    persister
    The entity persister.
    transientEntities
    A cache of already deleted entities.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also

    Reference

    DeleteEventListener Class
    DeleteEventListener Members
    Base Implementation in DeleteEntity