>OleDbCommand oCommand = new OleDbCommand(); >// connectionString is valid string (not shown here) >OleDbConnection oConnection = new OleDbConnection(connectionString); >oConnection.Open(); >oCommand.CommandText = "SP_MyProc"; >oCommand.CommandType = CommandType.StoredProcedure; >oCommand.Parameters.AddWithValue( "@par1", cPar1 ); >>
>IDbCommand oCommand; >idbCommand = new OleDbCommand(); >// connectionString is valid string (not shown here) >OleDbConnection oConnection = new OleDbConnection(connectionString); >oConnection.Open(); >oCommand.CommandText = "SP_MyProc"; >oCommand.CommandType = CommandType.StoredProcedure; >oCommand.Parameters.AddWithValue( "@par1", cPar1 ); >>
>'System.Data.IDataParameterCollection' does not contain definition for 'AddWithValue' >>