|UnitOfWorkAddForDelete Method (IEntity, IPredicate)|
Adds the passed in entity for deletion.
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 22.214.171.124 (5.3.0)
public virtual bool AddForDelete(
Public Overridable Function AddForDelete (
entityToDelete As IEntity,
restriction As IPredicate
) As Boolean
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity
The entity to delete via this unit of work
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
Filter to apply during delete. This restriction will be AND-ed
with the restriction constructed by a ConcurrencyPredicateFactory instance in entityToDelete (if applicable).
true if the entity is accepted, false if the entity is rejected (entity is new)