Ejemplo n.º 1
0
 private void btnDeValue_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(textBox2.Text))
     {
         return;
     }
     textBox1.Text = SecrityHelper.DeCode(textBox2.Text);
 }
Ejemplo n.º 2
0
        public static IDbConnection GetConnection(string connString = null)
        {
            var connectionString = connString ?? ConfigurationManager.ConnectionStrings["OracleConnString"].ConnectionString;
            //var connParam = MemoryCacheManager.Get<ConnectionParam>(StaticString.CurrentConnString);
            //if (!string.IsNullOrEmpty(connParam?.ConnectionString))
            //    connectionString = connParam.ConnectionString;
            var conn = new OracleConnection(SecrityHelper.DeCode(connectionString));

            if (conn.State != ConnectionState.Open)
            {
                conn.Open();
            }
            return(conn);
        }