Deletes the given TData instances permently from the C1 storage. This method triggers the event OnDeleted for each item in items

Namespace: Composite.Data
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public void Delete<TData>(
	IEnumerable<TData> items
)
where TData : class, IData
Visual Basic
Public Sub Delete(Of TData As {Class, IData}) ( _
	items As IEnumerable(Of TData) _
)
Visual C++
public:
generic<typename TData>
where TData : ref class, IData
void Delete(
	IEnumerable<TData>^ items
)

Parameters

items
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'TData>)>)>
The items to delete

Type Parameters

TData
An IData interface

Examples

CopyC#
using (DataConnection connection = new DataConnection())
{
   IMyDataType myDataTypes = 
      from d in connection.Get<IMyDataType>()
      where d.Name == "Foo"
      select d;


   connection.Delete<IMyDataType>(myDataTypes);
}

See Also