顺便说一下:Debug no errors是错误的:编译不是调试。调试是在应用程序运行时查看应用程序并收集有关它正在执行的操作的信息的过程。如果您已在调试器中运行此代码,它会告诉您treh问题是在行And SQL Server assumes that you are trying to specify a unique object within the SQL engine.See how much it helps when you give the whole error message?And by the way: "Debug no errors" is wrong: Compiling is not debugging. Debugging is the process of looking at an application while it is running, and gathering information about what it is doing. If you have run this code in the debugger, it would have told you treh problem was on the lineint userCount = (int)komandaprijave.ExecuteScalar();并且您可以拥有直接查看命令字符串并看到问题 - 甚至修复它并再试一次!and you could have looked at the command string directly and seen the problem - even fixed it and tried again! 这篇关于多部分标识符无法绑定C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-10 23:47