Different things work for different families so there's no right or wrong was of controlling a puppy / dog during meal times, it a case of what works for you.
Darwin is now nearly 2 1/2 yrs. We don't have family sit down breakfast as OH has always left for work by 6.30. Darwin has free roam of the kitchen lounge/dinning room during breakfast as once the first part of of my sons breakfast is on the table I feed Darwin. He'll then mess around, go in the garden and then either sit on my sons feet or play with his toys under the dinning table.
Normally we don't eat a weekday family meal as the earliest my OH gets home is 7pm. So if Darwin is awake whilst my son has his tea he'll do his own thing and never begs for food from the table. Initially when Darwin was a puppy, when OH and I would eat in the evening either at the table or in front of the TV, we would put Darwin back in his crate in the kitchen, It was never a problem, he never complained. Now soon as I start to plate up a meal Darwin will jump into his crate ( unless he's not already in there having been watching he cook) and watch me serve a meal. Once we've started eating he'll probably came and say hello, but if we're eating of trays in front of the TV, we'll just tell him "off you go" and he'll either go to his day bed or crate