My personal method is to aply first a base material which contain Ca(OH)2, covered by a liner (in my case Ionosit, which is a light curing liner with F and Zn ions release). The liner must cover all dentine surface but must not reach the enamel. After that you have to be sure that you only apply acid on the enamel margins (partial demineralization). I do so because, in my opinion, early sensitivity in composite fillings is due to total dentine demineralization or overheating by curing light.
Clinical trials had show that it´s important not to dissicate dentin after cavity preparation. You can use a Calcium hydroxyde liner, phosphate silicate liners or a glass ionomer. Type of Adhesive and handling properties is another issue to consider to prevent adhesive failure to asure marginal sealing to prevent microleakage.
I think the biggest effect has to follow the instructions for use of the used adhesive completely. Often this is not done (IADR Poster 2016) . From my point of view the dentine moisture and contamination prevention, the duration between taking the adhesive from the bottle and ist usage, the application technique and dwell time of the adhesive, the duration and technique of air-drying and finally a proper light curing of the adhesive prior the placement of the composite are THE IMPORTANT factors for minimising post-op hypersensitivities.