C#C
C#5mo ago
NovaLen

✅ SQL C# error

Hello I am currently taking a course on Udemy for C# and I have come to the learning section that deals with databases and SQL connections and commands in C# WPF apps. For some reason I keep on recieving this error for the "@ZooId" I put in my query string variable. Is there something I am missing to properly create and assign a column/Id to this @ZooId?

The WPF is supposed to show the animals associated with the city the user selects, but in my case I get the error and the animal list stays blank?
Screenshot_2025-07-24_175554.png
Was this page helpful?