警告 1 “System.Data.SqlClient.SqlParameterCollection.Add(string, object)”已过时:“Add(String parameterName, Object value) has been deprecated. Use AddWithValue(String parameterName, Object value). http://go.microsoft.com/fwlink/?linkid=14202”
我用的是VS 2005
我用的是VS 2005
在新版本的.NET已经不支持这个方法。
用新的方法吧:AddWithValue
如何改如不会非法,请问?
二楼已经给出答案了。比如thread.suspend,从2003开始就“过时”,一直到2008,还是在“过时”着……