In the 2005 election for Westchester County district attorney, Republican Janet DiFiore beat Democrat Tony Castro by about 6,231 votes, or a little less than 4 percent of the ballots cast.

This year, following Ms. DiFiore’s change of party affiliation, the two candidates will meet in Tuesday’s Democratic primary.