I am getting this:
{"The delete action of an entity failed, probably due to the set delete restriction. The entity which failed is enclosed."}
The case is strange.
I have 2 databases, all I want to do is save the entity into both (and also delete from both).
But I've found that I can't use the same entity for that; so I create another one and try and do it (it's working for saving).
But when deleting (using a unique index with 2 fields) I get the above error message.
Code is basically:
TheEntity fl2 = new TheEntity ();
fl2.Field1 = field1;
fl2.Field2 = field2;
adapter.DeleteEntity(fl2, fl2.ConstructFilterForUCForField2Field2());
why am i getting this message? thanks.
also, if there is any way to save the same entity into two different (but same schema) dbs i'd like to know. thanks.