コード例 #1
0
 public void EndSession()
 {
     if (OraSession != null)
     {
         OraSession.CloseConnection();
     }
 }
コード例 #2
0
        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);
        }