Right syntax of SqlParameter
问题 I'm trying to convert : command.Parameters.Add (new SqliteParameter (DbType.Int32) { Value = id }); To a normal SqlParameter : command.Parameters.Add(new SqlParameter(DbType.Int32) { Value = id }); I've managed to convert every line now besides this one, I'm getting these errors : Error 3 Argument 1: cannot convert from 'System.Data.DbType' to 'object[]' Error 2 The best overloaded method match for 'System.Data.SqlClient.SqlParameter.SqlParameter(object[])' has some invalid arguments Full