TRENTON, N.J. — Tyler Wade hit a walk-off inside-the-park home run off Williams Jerez to cap a five-run ninth inning Tuesday night as the Trenton Thunder rallied for a 10-9 victory against the Portland Sea Dogs.

The Sea Dogs (27-49) scored three runs in the top of the ninth to build a 9-5 lead. Andrew Benintendi and Cody Decker hit back-to-back RBI doubles in the inning, and Jake Romanski added an RBI single.

Austin Maddox relieved to start the bottom of the ninth for the Sea Dogs and allowed the first three batters to reach base for Trenton (49-29), including an RBI single by Jose Rosario that cut the deficit to 9-6.

Maddox rebounded to strike out the next two before giving up a tying three-run pinch-hit home run to Mark Payton.

Benintendi went 4 for 5 with a pair of doubles, two runs and an RBI, and Rainel Rosario went 4 for 4 with four RBI to pace Portland’s 16-hit offense.

Romanski finished with three hits, including a double, two runs and an RBI for Portland.

NOTE: Yoan Moncada and Benintendi of Portland will participate July 10 in the All-Star Futures Game in San Diego.