Usage patterns
〈人〉と晩餐を共にするto share a formal dinner with someone
The president shared a formal dinner with the heads of state.
〈人〉を晩餐に招くto invite someone to a formal dinner
The royal family invited many guests to the formal dinner.
晩餐の席でat the dinner table (in a formal setting)
Important matters were discussed at the formal dinner table.