Petapoco - Value cannot be null. Parameter name: key

89 views Asked by At

While trying to use

_database.Delete(pocoObjects);

I get the error: Value cannot be null. Parameter name: key

1

There are 1 answers

0
Post Impatica On

I should have been able to tell by the name, but I didn't realize the petapoco object I was trying to delete was a list.

Instead of: _database.Delete(pocoObjects);

I should be using: pocoObjects.ForEach(entity => database.Delete(entity));