Hi there!
I would first look into the medications that are being used for your surgery. Are any of them contraindicated while breastfeeding? You may not have a choice but to feed in another way during your stay for that reason alone. However, you don't necessarily have to give up bfing. You could pump during your stay and discard the milk (if needed) to maintain your supply, then return to bfing when you go home.
If you are able to breastfeed, I would hope that the hospital would make an exception in the visiting hours for a breastfeeding mother! I'm not sure what the laws are in the UK (perhaps someone else can jump in!) but in Canada there are laws protecting the rights of breastfeeding mothers to nurse as necessary. You may want to look into it as accommodations could easily be made. Again though, if it truly isn't possible or you're not comfortable with that, you could pump to maintain supply and your dh could offer the ebm to your lo until you are home.
HTH, and good luck with the surgery! I hope all goes well