Exemplo n.º 1
0
        public static OracleConnection OracleConnection(ConnectionInf conInf)
        {
            string           _con = $"User Id={conInf.UserId};Password={conInf.Password};Data Source={conInf.DataSource};";
            OracleConnection conn = new OracleConnection(_con);  // C#

            if (conn.State == ConnectionState.Open)
            {
                conn.Close();
            }
            conn.Open();
            return(conn);
        }
Exemplo n.º 2
0
 public Extras(ConnectionInf conInf)
 {
     _UserId     = conInf.UserId;
     _Password   = conInf.Password;
     _DataSource = conInf.DataSource;
 }