In my WPF-application, I want to start a window only to be shown, if there a no data in the table "Betrieb". So, I know that I can check this with "select count from Betrieb". My problem is, how to get the count into my application.
int i = cmd.ExecuteNonQuery();
is wrong and does not work.
Does anybody have advice?