public static void setValue(string headerText, string strgKey, string strgValue) { using (DAOContext con = new DAOContext(AccessConstring.SettingConString)) { con.OpenConnection(); MyDummySQLSettingsDAO dao = new MyDummySQLSettingsDAO(con); dao.mergeSettings(headerText, strgKey, strgValue); con.CloseConnection(); } }
public static void setValue(string headerText, string strgKey, string strgValue) { using (DAOContext con = new DAOContext(AccessConstring.SettingConString)) { con.OpenConnection(); MyDummySQLSettingsDAO dao = new MyDummySQLSettingsDAO(con); dao.mergeSettings(headerText, strgKey, strgValue); con.CloseConnection(); } }
public static void setValue(DAOContext con, string headerText, string strgKey, string strgValue) { if (con.Connection.State != ConnectionState.Open) return; MyDummySQLSettingsDAO dao = new MyDummySQLSettingsDAO(con); dao.mergeSettings(headerText, strgKey, strgValue); }