Otis wrote:
Because that's not supported. If you want to delete an entity, call the methods which delete an entity or a group of entities. This to make sure you delete what you want to delete
If anyone is curious, this worked.. (Generics rule)
Dim entitiesToDelete As New System.Collections.Generic.List(Of Integer)
For Each entity as SomeEntity in LotsaEntities
If (entity.SomeField = False) Then
entitiesToDelete.Add(entity.EntityId)
End If
Next
Dim deleteBucket As New RelationPredicateBucket()
deleteBucket.PredicateExpression.Add(PredicateFactory.CompareRange(SomeEntityFieldIndex.EntityId, entitiesToDelete))
adapter.DeleteEntitiesDirectly("SomeEntity", entitiesToDelete)