UnitOfWork2AddForDelete Method (IEntity2, IPredicateExpression) |
Adds the passed in entity for deletion.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax public virtual bool AddForDelete(
IEntity2 entityToDelete,
IPredicateExpression restriction
)
Public Overridable Function AddForDelete (
entityToDelete As IEntity2,
restriction As IPredicateExpression
) As Boolean
Parameters
- entityToDelete
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity2
The entity to delete via this unit of work - restriction
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicateExpression
Filter to apply during delete. This restriction will be AND-ed
with the restriction constructed by a ConcurrencyPredicateFactory instance in entityToDelete (if applicable).
Return Value
Type:
Booleantrue if the entity is accepted, false if the entity is rejected (entity is new)
See Also