Deletes the entity of the given type EntityType specified by its id (simple or multipart).

Namespace:  Aspectize.Core
Assembly:  AspectizeDAL (in AspectizeDAL.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
void DeleteEntity<EntityType>(
	Object id,
	params Object[] otherIdParts
)
where EntityType : new(), Entity
Visual Basic (Declaration)
Sub DeleteEntity(Of EntityType As {New, Entity}) ( _
	id As Object, _
	ParamArray otherIdParts As Object() _
)

Parameters

id
Type: System..::.Object
Either a simple value or the first part of a multipart value.
otherIdParts
Type: array< System..::.Object >[]()[]
The second and onwards parts of a multipart value.

Type Parameters

EntityType
Entity Type to delete

Examples

CopyC#
dm.DeleteEntity<AdventureWorks.Production.Product>(55);
CopyVB.NET
dm.DeleteEntity(Of AdventureWorks.Production.Product)(55)

See Also