Donaldson-Thomas Theory and Its Degeneration