public void EndSession() { if (OraSession != null) { OraSession.CloseConnection(); } }
public DateTime GetProjectStartDate() { string query = "select max(laststartts) from BATCHSTATS"; var masterSession = new OraSession(); var conString = masterSession.Load("Master"); masterSession.OpenConnection(conString); OracleCommand masterCmd = new OracleCommand(query, masterSession.OracleConnection); var result = masterSession.AsyncGetLastExecuted(masterCmd); masterSession.CloseConnection(); return(result); }