Click or drag to resize

DataAccessAdapterCoreDeleteEntity Method (IEntity2)

Deletes the specified entity from the persistent storage. The entity is not usable after this call, the state is set to OutOfSync. Will use the current transaction if a transaction is in progress. If the passed in entity has a concurrency predicate factory object, the returned predicate expression is used to restrict the delete process.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public bool DeleteEntity(
	IEntity2 entityToDelete
)

Parameters

entityToDelete
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity2
The entity instance to delete from the persistent storage

Return Value

Type: Boolean
true if the delete was succesful, otherwise false.

Implements

IDataAccessAdapterDeleteEntity(IEntity2)
See Also