Skip to content
Advertisement

InvalidOperationException: No columns were selected when performing a DELETE query

I have the feeling I’m missing something obvious, but I can’t quite put my finger on it.

So when this piece of code gets executed, I get the exception:

Even though I don’t need anything back from my call. I just want to know whether or not my DELETE query has succeeded. The strange part is that the query does get executed. The relevant record is deleted.

Advertisement

Answer

As I suspected. It was something stupid. Solution:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement