Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
        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;
        }