public static bool isExistsHeader(DAOContext con, string headerText) { if (con.Connection.State != ConnectionState.Open) return false; bool ret = false; MyDummySQLSettingsDAO dao = new MyDummySQLSettingsDAO(con); ret = dao.isExistsHeader(headerText); return ret; }
public static bool isExistsHeader(string headerText) { bool ret = false; using (DAOContext con = new DAOContext(AccessConstring.SettingConString)) { con.OpenConnection(); MyDummySQLSettingsDAO dao = new MyDummySQLSettingsDAO(con); ret = dao.isExistsHeader(headerText); con.CloseConnection(); } return ret; }
public static bool isExistsHeader(string headerText) { bool ret = false; using (DAOContext con = new DAOContext(AccessConstring.SettingConString)) { con.OpenConnection(); MyDummySQLSettingsDAO dao = new MyDummySQLSettingsDAO(con); ret = dao.isExistsHeader(headerText); con.CloseConnection(); } return ret; }