Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.DomainModel Namespace / RepositoryWithTypedId<TEntity,TId> Class / Delete Method / Delete(TId) Method
Id of the item to be deleted
In This Topic
    Delete(TId) Method
    In This Topic
    Deletes an item from the database by id
    Syntax
    public void Delete( 
       TId id
    )

    Parameters

    id
    Id of the item to be deleted
    Remarks
    This method should not be overridden. A child implementation can override the BeforeDelete/AfterDelete method to inject behaviors and these will be called automatically by NHibernate during persistence regardless of whether this Delete() instance method is called.
    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