I have the following simple vb code. How to convert to c#? Thanks.
Dim conn = New OracleConnection(System.Configuration.ConfigurationManager.AppSettings("ConnectionString"))
Dim CMD = New OracleCommand
Dim da = New OracleClient.OracleDataAdapter(CMD)
Dim ds = New DataSet
Carl TawnSystems and Integration DeveloperCommented:
OracleConnection conn = new OracleConnection(System.Configuration.ConfigurationManager.AppSettings("ConnectionString"));
OracleCommand CMD = new OracleCommand();
OracleClient.OracleDataAdapter da = new OracleClient.OracleDataAdapter(CMD);
DataSet ds = new DataSet();
OracleConnection conn = new OracleConnection(System.Configuration.ConfigurationManager.AppSettings("ConnectionString"));
OracleCommand CMD = new OracleCommand();
OracleDataAdapter da = new OracleDataAdapter(CMD);
DataSet ds = new DataSet();
There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
OracleCommand CMD = new OracleCommand();
OracleClient.OracleDataAda
DataSet ds = new DataSet();
CMD.Connection = conn;
conn.Open();
CMD.CommandText = "MY_PROC";
CMD.Parameters.Add("in_psr
CMD.Parameters["in_psr_typ
CMD.CommandType = CommandType.StoredProcedur
da.SelectCommand = CMD;
da.Fill(ds, "ContactRequests");
conn.Close();