コード例 #1
0
 void Close()
 {
     if (!isClosed)
     {
         GetRecordsAffected();
         if (command != null)
         {
             command.CloseDataReader();
         }
     }
     if (statement != null)
     {
         statement.Dispose();
         statement = null;
     }
     //if (schemaTable != null) {
     //	schemaTable.Dispose ();
     //	schemaTable = null;
     //}
     isClosed = true;
 }
コード例 #2
0
ファイル: OracleDataReader.cs プロジェクト: pmq20/mono_forked
        void Close()
        {
            if (!isClosed)
            {
                GetRecordsAffected();
                if (command != null)
                {
                    command.CloseDataReader();
                }
            }
            if (statement != null)
            {
                statement.Dispose();
                statement = null;
            }
#if NET_2_0
            if (schemaTable != null)
            {
                schemaTable.Dispose();
                schemaTable = null;
            }
#endif
            isClosed = true;
        }