private void btnDeValue_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBox2.Text)) { return; } textBox1.Text = SecrityHelper.DeCode(textBox2.Text); }
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); }