DimitriSturm wrote:
I'm using Adapter.
I have an entity having a property of type collection containing other entities. From this collection i want to delete some entities. Just calling the remove method on the collection doesn't work, since I just remove it in memory but not from the database.
In adapter, database activity is executed through the adapter. So, the easiest for you is simply creating a UnitOfWork2 instance, and add the entities you want to delete to that using AddForDelete() and then call unitofworkinstance.Commit(adapter, true);
You can also call adapter.DeleteEntity(entity). (see manual). The documentation is your friend