DaoBaseDeleteExisting Method |
Deletes an entity from the persistent storage. Which entity is deleted is determined from the passed in EntityFields object.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax public bool DeleteExisting(
IEntityFields fields,
ITransaction containingTransaction,
IPredicate deleteRestriction
)
Public Function DeleteExisting (
fields As IEntityFields,
containingTransaction As ITransaction,
deleteRestriction As IPredicate
) As Boolean
Parameters
- fields
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFields
The EntityField data to use for the deletion - containingTransaction
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction, if caller is added to a transaction, or null if not. - deleteRestriction
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
Predicate expression, meant for concurrency checks in a delete query. Can be null.
Return Value
Type:
Booleantrue if the delete was succesful, false otherwise
Implements
IDaoDeleteExisting(IEntityFields, ITransaction, IPredicate)Exceptions See Also