EMLA needs to have contact for 1 hour for optimal effect, preferably with a covering to stop it from drying out.
Most dental anaesthesia will last about 3 hours so long as each injection is a full carpule, the most commonly one used being lignocaine. If the dentist has bupivicaine, that can provide up to 20 hours, but does have some risks.